提交 b963d84b 编写于 作者: I Ilya Lavrenov

fixed bug #4215

上级 bdb088dc
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册