30% faster JIT compiler

This commit is contained in:
tevador
2019-05-04 19:40:25 +02:00
parent b1f1e1d6ad
commit a22e3b3cb0
12 changed files with 231 additions and 17 deletions
+1 -1
View File
@@ -616,7 +616,7 @@ namespace randomx {
if (!isPowerOf2(divisor)) {
registerUsage[instr.dst].lastUsed = i;
emit(MOV_RAX_I);
emit64(randomx_reciprocal(divisor));
emit64(randomx_reciprocal_fast(divisor));
emit(REX_IMUL_RM);
emitByte(0xc0 + 8 * instr.dst);
}