aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2021-11-07 16:02:41 +0000
committerDuncan Bellamy <dunk@denkimushi.com>2021-11-08 19:36:23 +0000
commit6f4cbc261b4ec7a7b75984dcc7a2eec1750efa6e (patch)
tree81822b3ad6a6f77defda9c2012e53500f2cbca5e /src/libcryptobox
parent70d9716811a80dd00dfaea3bbdbde082787a1dda (diff)
downloadrspamd-6f4cbc261b4ec7a7b75984dcc7a2eec1750efa6e.tar.gz
rspamd-6f4cbc261b4ec7a7b75984dcc7a2eec1750efa6e.zip
[Fix] Further fix for i386 compilation
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/cryptobox.c4
1 files 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"