From 58ef92d0e3337bbba30df962349116e56217e813 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 20 Jun 2016 11:31:15 -0400 Subject: [PATCH] Fix "SSE instruction set not enabled" (Issue 196) --- cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu.h b/cpu.h index daee1350..890f53db 100644 --- a/cpu.h +++ b/cpu.h @@ -41,6 +41,8 @@ # include # endif +#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE + // GCC 5.3/i686 fails to declare __m128 in the headers we use when compiling with -std=c++11 or -std=c++14. // Consequently, our _mm_shuffle_epi8, _mm_extract_epi32, etc fails to compile. #if defined(__has_include) @@ -50,7 +52,6 @@ #endif // PUSHFB needs Clang 3.3 and Apple Clang 5.0. -#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE #if !defined(__GNUC__) || defined(__SSSE3__)|| defined(__INTEL_COMPILER) || (CRYPTOPP_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 50000) #include #else