mirror of
https://codeberg.org/wownero/RandomWOW
synced 2026-03-05 22:27:33 -05:00
js -> jz to enable macro-op fusion on Intel CPUs (~1% speed-up)
This commit is contained in:
@@ -49,7 +49,7 @@ namespace RandomX {
|
||||
void AssemblyGeneratorX86::generateCode(Instruction& instr, int i) {
|
||||
asmCode << "rx_i_" << i << ": ;" << instr.getName() << std::endl;
|
||||
asmCode << "\tdec edi" << std::endl;
|
||||
asmCode << "\tjs rx_finish" << std::endl;
|
||||
asmCode << "\tjz rx_finish" << std::endl;
|
||||
auto generator = engine[instr.opcode];
|
||||
(this->*generator)(instr, i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user