Merge pull request #1859 from SChernykh/dev

RandomX: optimized soft AES code
This commit is contained in:
xmrig 2020-09-30 09:01:45 +07:00 committed by GitHub
commit f1ec8a18f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,19 +270,22 @@ void hashAndFillAes1Rx4(void *scratchpad, size_t scratchpadSize, void *hash, voi
rx_prefetch_t0(prefetchPtr);
rx_prefetch_t0(prefetchPtr + 64);
scratchpadPtr += 128;
prefetchPtr += 128;
break;
default:
HASH_STATE(0);
FILL_STATE(0);
rx_prefetch_t0(prefetchPtr);
HASH_STATE(1);
FILL_STATE(1);
rx_prefetch_t0(prefetchPtr + 64);
}
scratchpadPtr += 64;
prefetchPtr += 64;
scratchpadPtr += 128;
prefetchPtr += 128;
break;
}
}
prefetchPtr = (const char*) scratchpad;
scratchpadEnd += PREFETCH_DISTANCE;