From 38e26850fe15a5be0cff0557f5f31829fec58de4 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Tue, 28 Aug 2012 11:43:15 -0400 Subject: [PATCH] Make sure that cmake test properly checks return value of popcnt to test availability. --- BPTCEncoder/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BPTCEncoder/CMakeLists.txt b/BPTCEncoder/CMakeLists.txt index de660e7..604258c 100644 --- a/BPTCEncoder/CMakeLists.txt +++ b/BPTCEncoder/CMakeLists.txt @@ -25,7 +25,7 @@ IF(CMAKE_COMPILER_IS_GNUCC) #include int main() { const unsigned int testMe = 5; - return _mm_popcnt_u32(testMe); + return !(2 == _mm_popcnt_u32(testMe)); }" HAS_SSE_POPCNT )