Fix "SSE instruction set not enabled" (Issue 196)

pull/200/head
Jeffrey Walton 2016-06-20 11:31:15 -04:00
parent 3dfecc7613
commit 58ef92d0e3
1 changed files with 2 additions and 1 deletions

3
cpu.h
View File

@ -41,6 +41,8 @@
# include <emmintrin.h> # include <emmintrin.h>
# endif # 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. // 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. // Consequently, our _mm_shuffle_epi8, _mm_extract_epi32, etc fails to compile.
#if defined(__has_include) #if defined(__has_include)
@ -50,7 +52,6 @@
#endif #endif
// PUSHFB needs Clang 3.3 and Apple Clang 5.0. // 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) #if !defined(__GNUC__) || defined(__SSSE3__)|| defined(__INTEL_COMPILER) || (CRYPTOPP_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 50000)
#include <tmmintrin.h> #include <tmmintrin.h>
#else #else