Commit 8b1fe8f6 authored by Alexander Alekhin's avatar Alexander Alekhin

core: fix stat SIMD code

parent 7243eda2
...@@ -110,7 +110,7 @@ int normHamming(const uchar* a, const uchar* b, int n) ...@@ -110,7 +110,7 @@ int normHamming(const uchar* a, const uchar* b, int n)
{ {
v_uint64x2 t = v_setzero_u64(); v_uint64x2 t = v_setzero_u64();
for(; i <= n - v_uint8x16::nlanes; i += v_uint8x16::nlanes) for(; i <= n - v_uint8x16::nlanes; i += v_uint8x16::nlanes)
t += v_popcount(v_reinterpret_as_u64(vx_load(a + i) ^ vx_load(b + i))); t += v_popcount(v_reinterpret_as_u64(v_load(a + i) ^ v_load(b + i)));
result += (int)v_reduce_sum(t); result += (int)v_reduce_sum(t);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment