Support Dataset size larger than 4 GiB

Support arbitrary value of RANDOMX_DATASET_EXTRA_SIZE
This commit is contained in:
tevador
2019-05-29 17:27:49 +02:00
parent 378d5def38
commit bc2aae0f61
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ namespace randomx {
}
template<class Allocator, bool softAes>
void InterpretedVm<Allocator, softAes>::datasetRead(uint32_t address, int_reg_t(&r)[RegistersCount]) {
void InterpretedVm<Allocator, softAes>::datasetRead(uint64_t address, int_reg_t(&r)[RegistersCount]) {
uint64_t* datasetLine = (uint64_t*)(mem.memory + address);
for (int i = 0; i < RegistersCount; ++i)
r[i] ^= datasetLine[i];