Fix compile under CentOS 5 with GCC 4.1
parent
f7c8251a08
commit
0e9da81311
|
|
@ -473,7 +473,7 @@ NAMESPACE_END
|
||||||
#define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
|
#define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CRYPTOPP_DISABLE_SSE3) && (_MSC_VER >= 1400 || CRYPTOPP_GCC_VERSION >= 40102 || defined(__SSSE3__))
|
#if !defined(CRYPTOPP_DISABLE_SSE3) && (_MSC_VER >= 1400 || (defined(__SSE3__) && defined(__SSSE3__)))
|
||||||
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1
|
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1
|
||||||
#else
|
#else
|
||||||
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
|
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
|
||||||
|
|
|
||||||
2
config.h
2
config.h
|
|
@ -473,7 +473,7 @@ NAMESPACE_END
|
||||||
#define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
|
#define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CRYPTOPP_DISABLE_SSE3) && (_MSC_VER >= 1400 || CRYPTOPP_GCC_VERSION >= 40102 || defined(__SSSE3__))
|
#if !defined(CRYPTOPP_DISABLE_SSE3) && (_MSC_VER >= 1400 || (defined(__SSE3__) && defined(__SSSE3__)))
|
||||||
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1
|
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 1
|
||||||
#else
|
#else
|
||||||
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
|
#define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
|
||||||
|
|
|
||||||
2
cpu.h
2
cpu.h
|
|
@ -38,7 +38,7 @@
|
||||||
// PUSHFB needs Clang 3.3 and Apple Clang 5.0.
|
// PUSHFB needs Clang 3.3 and Apple Clang 5.0.
|
||||||
// #if (defined(__SSE3__) || defined(__SSSE3__)) || defined(__INTEL_COMPILER) || (CRYPTOPP_LLVM_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 50000)
|
// #if (defined(__SSE3__) || defined(__SSSE3__)) || defined(__INTEL_COMPILER) || (CRYPTOPP_LLVM_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 50000)
|
||||||
#if CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE
|
#if CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE
|
||||||
# include <tmmintrin.h> // _mm_shuffle_epi16
|
# include <tmmintrin.h> // _mm_shuffle_pi8, _mm_shuffle_epi8
|
||||||
#endif // tmmintrin.h
|
#endif // tmmintrin.h
|
||||||
|
|
||||||
// PEXTRD needs Clang 3.3 and Apple Clang 5.0.
|
// PEXTRD needs Clang 3.3 and Apple Clang 5.0.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue