1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

undo this change

This commit is contained in:
Christopher Wright
2025-09-20 08:38:40 -04:00
parent 93f5067999
commit eeec5ecd10

View File

@@ -52,7 +52,10 @@ uint64_t randomx_reciprocal(uint64_t divisor) {
uint64_t quotient = p2exp63 / divisor, remainder = p2exp63 % divisor;
unsigned bsr = 64 - __builtin_clzll(divisor); //highest set bit in divisor
unsigned bsr = 0; //highest set bit in divisor
for (uint64_t bit = divisor; bit > 0; bit >>= 1)
bsr++;
for (unsigned shift = 0; shift < bsr; shift++) {
if (remainder >= divisor - remainder) {