Updated RandomX
This commit is contained in:
parent
39e69c2723
commit
21a56c9cbf
9 changed files with 151 additions and 36 deletions
|
@ -244,7 +244,7 @@ namespace randomx {
|
|||
|
||||
if (opcode < RandomX_CurrentConfig.CEIL_IMUL_RCP) {
|
||||
uint64_t divisor = instr.getImm32();
|
||||
if (!isPowerOf2(divisor)) {
|
||||
if (!isZeroOrPowerOf2(divisor)) {
|
||||
auto dst = instr.dst % RegistersCount;
|
||||
ibc.type = InstructionType::IMUL_R;
|
||||
ibc.idst = &nreg->r[dst];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue