From 2eb400c52f60eea14be7b0c56295c58de3210fc6 Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Tue, 2 Jul 2019 23:45:03 +0300 Subject: [PATCH] config: guard CRYPTOPP_SSE2_INTRIN_AVAILABLE with CRYPTOPP_DISABLE_SSE2 (#858) Signed-off-by: Alon Bar-Lev --- config_asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_asm.h b/config_asm.h index dc10e052..23b991d0 100644 --- a/config_asm.h +++ b/config_asm.h @@ -110,7 +110,7 @@ #endif // 32-bit SunCC does not enable SSE2 by default. -#if !defined(CRYPTOPP_DISABLE_ASM) && (defined(_MSC_VER) || CRYPTOPP_GCC_VERSION >= 30300 || defined(__SSE2__) || (__SUNPRO_CC >= 0x5100)) +#if !defined(CRYPTOPP_DISABLE_ASM) && !defined(CRYPTOPP_DISABLE_SSE2) && (defined(_MSC_VER) || CRYPTOPP_GCC_VERSION >= 30300 || defined(__SSE2__) || (__SUNPRO_CC >= 0x5100)) #define CRYPTOPP_SSE2_INTRIN_AVAILABLE 1 #endif