@@ -28,7 +28,6 @@ int normHamming(const uchar* a, int n)
28
28
int i = 0 ;
29
29
int result = 0 ;
30
30
#if CV_AVX2
31
- if (USE_AVX2)
32
31
{
33
32
__m256i _r0 = _mm256_setzero_si256 ();
34
33
__m256i _0 = _mm256_setzero_si256 ();
@@ -52,7 +51,6 @@ int normHamming(const uchar* a, int n)
52
51
#endif // CV_AVX2
53
52
54
53
#if CV_POPCNT
55
- if (checkHardwareSupport (CV_CPU_POPCNT))
56
54
{
57
55
# if defined CV_POPCNT_U64
58
56
for (; i <= n - 8 ; i += 8 )
@@ -68,7 +66,6 @@ int normHamming(const uchar* a, int n)
68
66
#endif // CV_POPCNT
69
67
70
68
#if CV_SIMD128
71
- if (hasSIMD128 ())
72
69
{
73
70
v_uint32x4 t = v_setzero_u32 ();
74
71
for (; i <= n - v_uint8x16::nlanes; i += v_uint8x16::nlanes)
@@ -97,7 +94,6 @@ int normHamming(const uchar* a, const uchar* b, int n)
97
94
int i = 0 ;
98
95
int result = 0 ;
99
96
#if CV_AVX2
100
- if (USE_AVX2)
101
97
{
102
98
__m256i _r0 = _mm256_setzero_si256 ();
103
99
__m256i _0 = _mm256_setzero_si256 ();
@@ -124,7 +120,6 @@ int normHamming(const uchar* a, const uchar* b, int n)
124
120
#endif // CV_AVX2
125
121
126
122
#if CV_POPCNT
127
- if (checkHardwareSupport (CV_CPU_POPCNT))
128
123
{
129
124
# if defined CV_POPCNT_U64
130
125
for (; i <= n - 8 ; i += 8 )
@@ -140,7 +135,6 @@ int normHamming(const uchar* a, const uchar* b, int n)
140
135
#endif // CV_POPCNT
141
136
142
137
#if CV_SIMD128
143
- if (hasSIMD128 ())
144
138
{
145
139
v_uint32x4 t = v_setzero_u32 ();
146
140
for (; i <= n - v_uint8x16::nlanes; i += v_uint8x16::nlanes)
0 commit comments