From c05947db0921b567c78280df29f512f6fe09dcc5 Mon Sep 17 00:00:00 2001 From: tevador Date: Sun, 23 Dec 2018 14:25:22 +0100 Subject: [PATCH] Bug fixes --- src/JitCompilerX86.cpp | 3 +++ src/dataset.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/JitCompilerX86.cpp b/src/JitCompilerX86.cpp index 9fb106a..f5740fb 100644 --- a/src/JitCompilerX86.cpp +++ b/src/JitCompilerX86.cpp @@ -27,6 +27,9 @@ along with RandomX. If not, see. #else #include #include +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif #endif namespace RandomX { diff --git a/src/dataset.cpp b/src/dataset.cpp index dc16a4e..dee40c5 100644 --- a/src/dataset.cpp +++ b/src/dataset.cpp @@ -131,6 +131,12 @@ namespace RandomX { } } + template + void initBlock(const uint8_t*, uint8_t*, uint32_t, const KeysContainer&); + + template + void initBlock(const uint8_t*, uint8_t*, uint32_t, const KeysContainer&); + template convertible_t datasetReadLight(addr_t addr, MemoryRegisters& memory) { convertible_t data;