Skip to content

Commit e6d7989

Browse files
committed
Merge pull request opencv#7986 from atinfinity:pullreq/170109-add_USE_AVX2_condition
2 parents 406fe89 + b3c77e6 commit e6d7989

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/core/src/stat.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -4253,6 +4253,7 @@ int normHamming(const uchar* a, int n)
42534253
result += vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),2);
42544254
}
42554255
#elif CV_AVX2
4256+
if (USE_AVX2)
42564257
{
42574258
__m256i _r0 = _mm256_setzero_si256();
42584259
__m256i _0 = _mm256_setzero_si256();
@@ -4303,6 +4304,7 @@ int normHamming(const uchar* a, const uchar* b, int n)
43034304
result += vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),2);
43044305
}
43054306
#elif CV_AVX2
4307+
if (USE_AVX2)
43064308
{
43074309
__m256i _r0 = _mm256_setzero_si256();
43084310
__m256i _0 = _mm256_setzero_si256();

0 commit comments

Comments
 (0)