From f1690557bf9891301f4105075d6d34741e9bcfc8 Mon Sep 17 00:00:00 2001 From: Josh Doe Date: Sun, 29 Jul 2012 14:48:21 -0400 Subject: [PATCH] core/stat: fix build with 32-bit Optimization introduced in b782d8bb only works for 64-bit builds, but ifdef failed to check for this. --- modules/core/src/stat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 560ef5462..2ef29eaf5 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -225,7 +225,7 @@ template <> int countNonZero_ (const uchar* src, int len) { int i=0, nz = 0; - #if (defined CV_SSE4_2 && CV_SSE4_2) + #if (defined CV_SSE4_2 && CV_SSE4_2 && (_WIN64 || __amd64__)) if(USE_SSE4_2)//5x-6x { __m128i pattern = _mm_setzero_si128 ();