From 233af9f14f6356b8a2de20df1c0793d93f781a9d Mon Sep 17 00:00:00 2001 From: tevador Date: Fri, 22 Mar 2019 12:03:39 +0100 Subject: [PATCH] Minor fixes for non-x86 platforms --- makefile | 2 +- src/JitCompilerX86.cpp | 4 ++++ src/squareHash.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index fa21852..cd49f88 100644 --- a/makefile +++ b/makefile @@ -70,7 +70,7 @@ $(OBJDIR)/CompiledVirtualMachine.o: $(addprefix $(SRCDIR)/,CompiledVirtualMachin $(OBJDIR)/CompiledLightVirtualMachine.o: $(addprefix $(SRCDIR)/,CompiledLightVirtualMachine.cpp CompiledLightVirtualMachine.hpp common.hpp configuration.h JitCompilerX86.hpp) | $(OBJDIR) $(CXX) $(CXXFLAGS) -c $(SRCDIR)/CompiledLightVirtualMachine.cpp -o $@ -$(OBJDIR)/dataset.o: $(addprefix $(SRCDIR)/,dataset.cpp common.hpp blake2/endian.h dataset.hpp intrinPortable.h Cache.hpp virtualMemory.hpp configuration.h) | $(OBJDIR) +$(OBJDIR)/dataset.o: $(addprefix $(SRCDIR)/,dataset.cpp common.hpp blake2/endian.h dataset.hpp intrinPortable.h Cache.hpp virtualMemory.hpp configuration.h squareHash.h) | $(OBJDIR) $(CXX) $(CXXFLAGS) -c $(SRCDIR)/dataset.cpp -o $@ $(OBJDIR)/reciprocal.o: $(addprefix $(SRCDIR)/,reciprocal.c reciprocal.h) | $(OBJDIR) diff --git a/src/JitCompilerX86.cpp b/src/JitCompilerX86.cpp index 6ab9077..fef890d 100644 --- a/src/JitCompilerX86.cpp +++ b/src/JitCompilerX86.cpp @@ -38,6 +38,10 @@ namespace RandomX { } + void JitCompilerX86::generateProgramLight(Program& p) { + + } + size_t JitCompilerX86::getCodeSize() { return 0; } diff --git a/src/squareHash.h b/src/squareHash.h index ce87f92..1128627 100644 --- a/src/squareHash.h +++ b/src/squareHash.h @@ -53,7 +53,7 @@ static inline uint128_t square128(uint64_t x) { #undef HI inline uint64_t squareHash(uint64_t x) { - x += 9507361525245169745; + x += 9507361525245169745ULL; for (int i = 0; i < 42; ++i) { uint128_t x2 = square128(x); x = x2.lo - x2.hi;