mirror of
https://github.com/xmrig/xmrig.git
synced 2026-07-03 07:12:45 -04:00
Compare commits
2 Commits
1f7e635b04
...
9fbdcc0ef0
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fbdcc0ef0 | |||
| c7c26d97fe |
@@ -260,6 +260,7 @@ typedef void(randomx::JitCompilerX86::* InstructionGeneratorX86_2)(const randomx
|
|||||||
|
|
||||||
#define JIT_HANDLE(x, prev) do { \
|
#define JIT_HANDLE(x, prev) do { \
|
||||||
const InstructionGeneratorX86_2 p = &randomx::JitCompilerX86::h_##x; \
|
const InstructionGeneratorX86_2 p = &randomx::JitCompilerX86::h_##x; \
|
||||||
|
static_assert(sizeof(p) == sizeof(randomx::JitCompilerX86::engine[k]), "Pointer size mismatch"); \
|
||||||
memcpy(randomx::JitCompilerX86::engine + k, &p, sizeof(p)); \
|
memcpy(randomx::JitCompilerX86::engine + k, &p, sizeof(p)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user