Fix compile on Solaris 11.3 under GCC and SunCC
parent
b7c7874d15
commit
69b3a7a664
|
|
@ -11,6 +11,10 @@
|
|||
#include "misc.h"
|
||||
#include "blake2.h"
|
||||
|
||||
#if (CRYPTOPP_SSE2_AVAILABLE)
|
||||
# include "emmintrin.h"
|
||||
#endif
|
||||
|
||||
#if (CRYPTOPP_SSE42_AVAILABLE)
|
||||
# include "nmmintrin.h"
|
||||
#endif
|
||||
|
|
|
|||
2
gcm.cpp
2
gcm.cpp
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
||||
|
||||
#if (CRYPTOPP_CLMUL_AVAILABLE)
|
||||
#if (CRYPTOPP_SSE2_AVAILABLE)
|
||||
# include "emmintrin.h"
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -31,12 +31,10 @@
|
|||
#endif
|
||||
|
||||
#if (CRYPTOPP_SSE41_AVAILABLE)
|
||||
// Hack... Clang conflates SSE4.1 and SSE4.2. Without __SSE4_2__,
|
||||
// early Apple and LLVM compilers fail with "SSE4.2 instruction
|
||||
// set not enabled" when "nmmintrin.h" is included. Its non-trivial
|
||||
// for us to automatically add -msse4.2 for Apple Clang. We also want
|
||||
// to avoid problems on low-end Atoms which have AES but lack SSE4.2.
|
||||
# if defined(__clang__)
|
||||
// Hack... GCC 4.8, LLVM Clang 3.5 and Apple Clang 6.0 conflates SSE4.1
|
||||
// and SSE4.2. Without __SSE4_2__, early compilers fail with "SSE4.2
|
||||
// instruction set not enabled" when "nmmintrin.h" is included.
|
||||
# if defined(__clang__) || defined(__GNUC__)
|
||||
# define __SSE4_2__ 1
|
||||
# endif
|
||||
# include "nmmintrin.h"
|
||||
|
|
|
|||
Loading…
Reference in New Issue