commit 6f4cbc2: [Fix] Further fix for i386 compilation
Duncan Bellamy
dunk at denkimushi.com
Tue Nov 9 17:07:05 UTC 2021
Author: Duncan Bellamy
Date: 2021-11-07 16:02:41 +0000
URL: https://github.com/rspamd/rspamd/commit/6f4cbc261b4ec7a7b75984dcc7a2eec1750efa6e (refs/pull/3967/head)
[Fix] Further fix for i386 compilation
---
src/libcryptobox/cryptobox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index 3139bb1c7..f34cd1375 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -118,7 +118,7 @@ rspamd_cryptobox_test_instr (gint instr)
}
switch (instr) {
-#ifdef HAVE_SSE2
+#if defined HAVE_SSE2 && defined (__x86_64__)
case CPUID_SSE2:
__asm__ volatile ("psubb %xmm0, %xmm0");
break;
@@ -146,7 +146,7 @@ rspamd_cryptobox_test_instr (gint instr)
__asm__ volatile ("pcmpeqq %xmm0, %xmm0");
break;
#endif
-#ifdef HAVE_SSE42
+#if defined HAVE_SSE42 && defined(__x86_64__)
case CPUID_SSE42:
__asm__ volatile ("pushq %rax\n"
"xorq %rax, %rax\n"
More information about the Commits
mailing list