Improved Visual Studio detection for BLAKE2 SSE implementations

pull/157/head
Jeffrey Walton 2016-04-19 01:48:55 -04:00
parent f1ab826ff4
commit 71a6c2c187
1 changed files with 8 additions and 2 deletions

View File

@ -10,9 +10,15 @@
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
// Visual Studio needs both VS2005 and _M_64 for _mm_set_epi64x() // Visual Studio needs both VS2005 (1400) and _M_64 for SSE2 and _mm_set_epi64x()
#if defined(_MSC_VER) && ((_MSC_VER < 1500) || !defined(_M_X64)) // http://msdn.microsoft.com/en-us/library/y0dh78ez%28v=vs.80%29.aspx
#if defined(_MSC_VER) && ((_MSC_VER < 1400) || !defined(_M_X64))
# undef CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE # undef CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
#endif
// Visual Studio needs both VS2008 (1500) and _M_64 for SSE4
// http://msdn.microsoft.com/en-us/library/bb892950%28v=vs.90%29.aspx
#if defined(_MSC_VER) && ((_MSC_VER < 1500) || !defined(_M_X64))
# undef CRYPTOPP_BOOL_SSE4_INTRINSICS_AVAILABLE # undef CRYPTOPP_BOOL_SSE4_INTRINSICS_AVAILABLE
#endif #endif