2018-12-11 20:00:30 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2018 tevador
|
|
|
|
|
|
|
|
This file is part of RandomX.
|
|
|
|
|
|
|
|
RandomX is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
RandomX is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with RandomX. If not, see<http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Program.hpp"
|
2019-02-09 14:45:26 +00:00
|
|
|
#include "hashAes1Rx4.hpp"
|
2018-12-11 20:00:30 +00:00
|
|
|
|
|
|
|
namespace RandomX {
|
2019-03-28 14:27:10 +00:00
|
|
|
template<size_t PROGRAM_SIZE>
|
|
|
|
void ProgramBase::print(std::ostream& os) const {
|
2019-03-08 14:34:34 +00:00
|
|
|
for (int i = 0; i < RANDOMX_PROGRAM_SIZE; ++i) {
|
2018-12-11 20:00:30 +00:00
|
|
|
auto instr = programBuffer[i];
|
2018-12-13 22:11:55 +00:00
|
|
|
os << instr;
|
2018-12-11 20:00:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|