Fix compile on Solaris 11.3 under GCC and SunCC

pull/461/head
Jeffrey Walton 2017-08-09 00:14:54 -04:00
parent b7c7874d15
commit 69b3a7a664
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
3 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -28,7 +28,7 @@
NAMESPACE_BEGIN(CryptoPP)
#if (CRYPTOPP_CLMUL_AVAILABLE)
#if (CRYPTOPP_SSE2_AVAILABLE)
# include "emmintrin.h"
#endif

View File

@ -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"