From b3c77e664d853e425f8966fbd1f3be993b22df99 Mon Sep 17 00:00:00 2001 From: atinfinity Date: Mon, 9 Jan 2017 19:51:33 +0900 Subject: [PATCH] added to check the support of AVX2 --- modules/core/src/stat.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 5cdae20..e1fddb2 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -4253,6 +4253,7 @@ int normHamming(const uchar* a, int n) result += vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),2); } #elif CV_AVX2 + if (USE_AVX2) { __m256i _r0 = _mm256_setzero_si256(); __m256i _0 = _mm256_setzero_si256(); @@ -4303,6 +4304,7 @@ int normHamming(const uchar* a, const uchar* b, int n) result += vgetq_lane_s32 (vreinterpretq_s32_u64(bitSet2),2); } #elif CV_AVX2 + if (USE_AVX2) { __m256i _r0 = _mm256_setzero_si256(); __m256i _0 = _mm256_setzero_si256(); -- 2.7.4