Updated RandomX

This commit is contained in:
SChernykh
2019-08-27 16:12:13 +02:00
parent dd52e4de02
commit fc670b2a58
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];