diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-05 12:40:06 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-05 12:40:06 +0200 |
commit | 39d7d3113bfe3655e721fa08b132d3b7fbcfb9b3 (patch) | |
tree | 01313a7ac6efed723a88e4063478539323fd556b /src/crypto/CryptonightR_JIT.h | |
parent | Merge pull request #5101 (diff) | |
parent | CryptonightR: define out i386/x86_64 specific code on other archs (diff) | |
download | monero-39d7d3113bfe3655e721fa08b132d3b7fbcfb9b3.tar.xz |
Merge pull request #5231
108c625b CryptonightR: define out i386/x86_64 specific code on other archs (moneromooo-monero)
1b8757dd slow-hash: fix build on arm (moneromooo-monero)
5057eb11 cmake: ARCH_ID fixes for cross compilation (TheCharlatan)
Diffstat (limited to 'src/crypto/CryptonightR_JIT.h')
-rw-r--r-- | src/crypto/CryptonightR_JIT.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crypto/CryptonightR_JIT.h b/src/crypto/CryptonightR_JIT.h index 5f689b37b..cb32c3a79 100644 --- a/src/crypto/CryptonightR_JIT.h +++ b/src/crypto/CryptonightR_JIT.h @@ -8,7 +8,11 @@ // - Call v4_generate_JIT_code with "buf" pointed to memory allocated on previous step // - Call the generated code instead of "v4_random_math(code, r)", omit the "code" parameter -typedef void (*v4_random_math_JIT_func)(uint32_t* r) __attribute__((sysv_abi)); +typedef void (*v4_random_math_JIT_func)(uint32_t* r) +#if defined __i386 || defined __x86_64__ +__attribute__((sysv_abi)) +#endif +; // Given the random math sequence, generates machine code (x86-64) for it // Returns 0 if code was generated successfully |