Commit f1690557 authored by Josh Doe's avatar Josh Doe

core/stat: fix build with 32-bit

Optimization introduced in b782d8bb only works for 64-bit builds, but
ifdef failed to check for this.
parent f8facadc
...@@ -225,7 +225,7 @@ template <> ...@@ -225,7 +225,7 @@ template <>
int countNonZero_ <uchar> (const uchar* src, int len) int countNonZero_ <uchar> (const uchar* src, int len)
{ {
int i=0, nz = 0; 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 if(USE_SSE4_2)//5x-6x
{ {
__m128i pattern = _mm_setzero_si128 (); __m128i pattern = _mm_setzero_si128 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment