From b963d84b411eae280d96d2d28fdd595fa7cb76ec Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Wed, 25 Feb 2015 21:57:17 +0300 Subject: [PATCH] fixed bug #4215 --- modules/core/src/stat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 87c423dc3b..348a68fd3b 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -517,9 +517,11 @@ static const uchar * initPopcountTable() unsigned int j = 0u; #if CV_POPCNT if (checkHardwareSupport(CV_CPU_POPCNT)) + { for( ; j < 256u; j++ ) tab[j] = (uchar)(8 - _mm_popcnt_u32(j)); -#else + } +#endif for( ; j < 256u; j++ ) { int val = 0; @@ -527,7 +529,6 @@ static const uchar * initPopcountTable() val += (j & mask) == 0; tab[j] = (uchar)val; } -#endif initialized = true; }