[opencv] 07/251: core(stat): remove useless checks

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 3.3.0
in repository opencv.

commit 6a6222d21c6d8308f208a0d09b8003afb4919890
Author: Alexander Alekhin <alexander.a.alekhin at gmail.com>
Date:   Sun Jul 2 13:18:22 2017 +0000

    core(stat): remove useless checks
---
 modules/core/src/stat.simd.hpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/core/src/stat.simd.hpp b/modules/core/src/stat.simd.hpp
index 25d9095..206817c 100644
--- a/modules/core/src/stat.simd.hpp
+++ b/modules/core/src/stat.simd.hpp
@@ -28,7 +28,6 @@ int normHamming(const uchar* a, int n)
     int i = 0;
     int result = 0;
 #if CV_AVX2
-    if(USE_AVX2)
     {
         __m256i _r0 = _mm256_setzero_si256();
         __m256i _0 = _mm256_setzero_si256();
@@ -52,7 +51,6 @@ int normHamming(const uchar* a, int n)
 #endif // CV_AVX2
 
 #if CV_POPCNT
-    if(checkHardwareSupport(CV_CPU_POPCNT))
     {
 #  if defined CV_POPCNT_U64
         for(; i <= n - 8; i += 8)
@@ -68,7 +66,6 @@ int normHamming(const uchar* a, int n)
 #endif // CV_POPCNT
 
 #if CV_SIMD128
-    if(hasSIMD128())
     {
         v_uint32x4 t = v_setzero_u32();
         for(; i <= n - v_uint8x16::nlanes; i += v_uint8x16::nlanes)
@@ -97,7 +94,6 @@ int normHamming(const uchar* a, const uchar* b, int n)
     int i = 0;
     int result = 0;
 #if CV_AVX2
-    if(USE_AVX2)
     {
         __m256i _r0 = _mm256_setzero_si256();
         __m256i _0 = _mm256_setzero_si256();
@@ -124,7 +120,6 @@ int normHamming(const uchar* a, const uchar* b, int n)
 #endif // CV_AVX2
 
 #if CV_POPCNT
-    if(checkHardwareSupport(CV_CPU_POPCNT))
     {
 #  if defined CV_POPCNT_U64
         for(; i <= n - 8; i += 8)
@@ -140,7 +135,6 @@ int normHamming(const uchar* a, const uchar* b, int n)
 #endif // CV_POPCNT
 
 #if CV_SIMD128
-    if(hasSIMD128())
     {
         v_uint32x4 t = v_setzero_u32();
         for(; i <= n - v_uint8x16::nlanes; i += v_uint8x16::nlanes)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list