This commit is contained in:
MoneroOcean 2020-03-04 17:58:35 -08:00
commit db6a553341
33 changed files with 2354 additions and 30 deletions

View file

@ -326,9 +326,9 @@ namespace randomx {
}
void JitCompilerX86::prepare() {
for (int i = 0; i < sizeof(engine); i += 64)
for (size_t i = 0; i < sizeof(engine); i += 64)
rx_prefetch_nta((const char*)(&engine) + i);
for (int i = 0; i < sizeof(RandomX_CurrentConfig); i += 64)
for (size_t i = 0; i < sizeof(RandomX_CurrentConfig); i += 64)
rx_prefetch_nta((const char*)(&RandomX_CurrentConfig) + i);
}