aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/CryptonightR_JIT.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-21 19:14:19 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-22 15:51:07 +0000
commit773509ddd8f2b35a3a7f3e0a0414317be821b0ad (patch)
tree63cf135e2ff89e4ff41bd0d8edde1cfaf608ca63 /src/crypto/CryptonightR_JIT.h
parentcmake: ARCH_ID fixes for cross compilation (diff)
downloadmonero-773509ddd8f2b35a3a7f3e0a0414317be821b0ad.tar.xz
slow-hash: fix build on arm
Diffstat (limited to 'src/crypto/CryptonightR_JIT.h')
-rw-r--r--src/crypto/CryptonightR_JIT.h6
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