summaryrefslogtreecommitdiff
path: root/cpu.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-25 21:39:59 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-25 21:39:59 +0000
commitee715577df497906aa90034572677835e4702a76 (patch)
treeaa4e2d0407769c5408e38b4be83ec8d137597f73 /cpu.cpp
parente66a4497451a7c2920d1a68d38b5dfc5f376954f (diff)
downloadcryptopp-ee715577df497906aa90034572677835e4702a76.tar.gz
fix compile on Mac OS X
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@510 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'cpu.cpp')
-rwxr-xr-xcpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu.cpp b/cpu.cpp
index c1a1d95..7a0079a 100755
--- a/cpu.cpp
+++ b/cpu.cpp
@@ -13,7 +13,7 @@
#include <setjmp.h>
#endif
-#ifdef CRYPTOPP_MSVC6PP_OR_LATER
+#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
#include <emmintrin.h>
#endif
@@ -108,7 +108,7 @@ static bool TrySSE2()
#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
AS2(por xmm0, xmm0) // executing SSE2 instruction
#elif CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
- __mm128i x = _mm_setzero_si128();
+ __m128i x = _mm_setzero_si128();
return _mm_cvtsi128_si32(x) == 0;
#endif
}
@@ -130,7 +130,7 @@ static bool TrySSE2()
#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
__asm __volatile ("por %xmm0, %xmm0");
#elif CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
- __mm128i x = _mm_setzero_si128();
+ __m128i x = _mm_setzero_si128();
result = _mm_cvtsi128_si32(x) == 0;
#endif
}