aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/CryptonightR_JIT.c
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-26 16:58:45 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-05 10:24:24 +0000
commit108c625b3f96d718677aa9eee5c6490894ca152a (patch)
tree01313a7ac6efed723a88e4063478539323fd556b /src/crypto/CryptonightR_JIT.c
parentslow-hash: fix build on arm (diff)
downloadmonero-108c625b3f96d718677aa9eee5c6490894ca152a.tar.xz
CryptonightR: define out i386/x86_64 specific code on other archs
Diffstat (limited to 'src/crypto/CryptonightR_JIT.c')
-rw-r--r--src/crypto/CryptonightR_JIT.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/CryptonightR_JIT.c b/src/crypto/CryptonightR_JIT.c
index 172e4a50b..68258a959 100644
--- a/src/crypto/CryptonightR_JIT.c
+++ b/src/crypto/CryptonightR_JIT.c
@@ -54,6 +54,7 @@ static const uint8_t epilogue[] = {
int v4_generate_JIT_code(const struct V4_Instruction* code, v4_random_math_JIT_func buf, const size_t buf_size)
{
+#if defined __i386 || defined __x86_64__
uint8_t* JIT_code = (uint8_t*) buf;
const uint8_t* JIT_code_end = JIT_code + buf_size;
@@ -103,4 +104,7 @@ int v4_generate_JIT_code(const struct V4_Instruction* code, v4_random_math_JIT_f
__builtin___clear_cache((char*)buf, (char*)JIT_code);
return 0;
+#else
+ return 1;
+#endif
}