Fix "SSE4.2 instruction set not enabled"
Also see https://gcc.gnu.org/ml/gcc-help/2017-08/msg00015.htmlpull/461/head
parent
ce96a7974d
commit
0c194bbc46
|
|
@ -31,13 +31,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CRYPTOPP_SSE41_AVAILABLE)
|
#if (CRYPTOPP_SSE41_AVAILABLE)
|
||||||
// Hack... GCC 4.8, LLVM Clang 3.5 and Apple Clang 6.0 conflates SSE4.1
|
// Hack... We are supposed to use <nmmintrin.h>. GCC 4.8, LLVM Clang 3.5
|
||||||
// and SSE4.2. Without __SSE4_2__, early compilers fail with "SSE4.2
|
// and Apple Clang 6.0 conflates SSE4.1 and SSE4.2. If we use <nmmintrin.h>
|
||||||
// instruction set not enabled" when "nmmintrin.h" is included.
|
// then compile fails with "SSE4.2 instruction set not enabled". Also see
|
||||||
# if defined(__clang__) || defined(__GNUC__)
|
// https://gcc.gnu.org/ml/gcc-help/2017-08/msg00015.html.
|
||||||
# define __SSE4_2__ 1
|
# include "smmintrin.h"
|
||||||
# endif
|
|
||||||
# include "nmmintrin.h"
|
|
||||||
#endif // CRYPTOPP_SSE41_AVAILABLE
|
#endif // CRYPTOPP_SSE41_AVAILABLE
|
||||||
|
|
||||||
#if (CRYPTOPP_AESNI_AVAILABLE)
|
#if (CRYPTOPP_AESNI_AVAILABLE)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue