mirror of
https://github.com/wownero/RandomX.git
synced 2026-10-24 10:48:38 +02:00
WIP
This commit is contained in:
@@ -52,6 +52,16 @@ namespace RandomX {
|
||||
uint8_t* code;
|
||||
int32_t codePos;
|
||||
|
||||
template<class P>
|
||||
void generateCode(P& prog) {
|
||||
for (unsigned i = 0; i < prog.getSize(); ++i) {
|
||||
Instruction& instr = prog(i);
|
||||
instr.src %= RegistersCount;
|
||||
instr.dst %= RegistersCount;
|
||||
generateCode(instr, i);
|
||||
}
|
||||
}
|
||||
|
||||
void generateProgramPrologue(Program&);
|
||||
void generateProgramEpilogue(Program&);
|
||||
int getConditionRegister();
|
||||
|
||||
Reference in New Issue
Block a user