From 6f4cbc261b4ec7a7b75984dcc7a2eec1750efa6e Mon Sep 17 00:00:00 2001 From: Duncan Bellamy Date: Sun, 7 Nov 2021 16:02:41 +0000 Subject: [PATCH] [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" -- 2.39.5