core/stat: fix build with 32-bit

Optimization introduced in b782d8bb only works for 64-bit builds, but
ifdef failed to check for this.
This commit is contained in:
Josh Doe
2012-07-29 14:48:21 -04:00
parent f8facadc67
commit f1690557bf

View File

@@ -225,7 +225,7 @@ template <>
int countNonZero_ <uchar> (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 ();