mirror of
https://github.com/wownero/RandomX.git
synced 2026-10-19 00:08:45 +02:00
Simplified division in interpreted mode
Fixed incorrect condition code in JitCompilerX86 Refactoring
This commit is contained in:
@@ -666,8 +666,8 @@ namespace RandomX {
|
||||
emit(AND_OR_MOV_LDMXCSR);
|
||||
}
|
||||
|
||||
static inline uint8_t condition(Instruction& instr, bool invert = false) {
|
||||
switch ((instr.mod & 7) ^ invert)
|
||||
static inline uint8_t condition(Instruction& instr) {
|
||||
switch ((instr.mod >> 2) & 7)
|
||||
{
|
||||
case 0:
|
||||
return 0x96; //setbe
|
||||
|
||||
Reference in New Issue
Block a user