]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Further fix for i386 compilation 3967/head
authorDuncan Bellamy <dunk@denkimushi.com>
Sun, 7 Nov 2021 16:02:41 +0000 (16:02 +0000)
committerDuncan Bellamy <dunk@denkimushi.com>
Mon, 8 Nov 2021 19:36:23 +0000 (19:36 +0000)
src/libcryptobox/cryptobox.c

index 3139bb1c7ea26a1ea098e6d20b124aa9d63e984a..f34cd137564ebe52f5576c02e19f5ff922cdd4e4 100644 (file)
@@ -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"