mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-12-22 07:48:54 +00:00
Minor fixes for non-x86 platforms
This commit is contained in:
parent
4c1ae951de
commit
233af9f14f
2
makefile
2
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)
|
$(OBJDIR)/CompiledLightVirtualMachine.o: $(addprefix $(SRCDIR)/,CompiledLightVirtualMachine.cpp CompiledLightVirtualMachine.hpp common.hpp configuration.h JitCompilerX86.hpp) | $(OBJDIR)
|
||||||
$(CXX) $(CXXFLAGS) -c $(SRCDIR)/CompiledLightVirtualMachine.cpp -o $@
|
$(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 $@
|
$(CXX) $(CXXFLAGS) -c $(SRCDIR)/dataset.cpp -o $@
|
||||||
|
|
||||||
$(OBJDIR)/reciprocal.o: $(addprefix $(SRCDIR)/,reciprocal.c reciprocal.h) | $(OBJDIR)
|
$(OBJDIR)/reciprocal.o: $(addprefix $(SRCDIR)/,reciprocal.c reciprocal.h) | $(OBJDIR)
|
||||||
|
@ -38,6 +38,10 @@ namespace RandomX {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JitCompilerX86::generateProgramLight(Program& p) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
size_t JitCompilerX86::getCodeSize() {
|
size_t JitCompilerX86::getCodeSize() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ static inline uint128_t square128(uint64_t x) {
|
|||||||
#undef HI
|
#undef HI
|
||||||
|
|
||||||
inline uint64_t squareHash(uint64_t x) {
|
inline uint64_t squareHash(uint64_t x) {
|
||||||
x += 9507361525245169745;
|
x += 9507361525245169745ULL;
|
||||||
for (int i = 0; i < 42; ++i) {
|
for (int i = 0; i < 42; ++i) {
|
||||||
uint128_t x2 = square128(x);
|
uint128_t x2 = square128(x);
|
||||||
x = x2.lo - x2.hi;
|
x = x2.lo - x2.hi;
|
||||||
|
Loading…
Reference in New Issue
Block a user