Updated RandomX

This commit is contained in:
SChernykh 2019-08-27 16:12:13 +02:00
parent 39e69c2723
commit 21a56c9cbf
9 changed files with 151 additions and 36 deletions

View file

@ -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];