mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge pull request #15372 from alalek:core_stat_fix_intrin
This commit is contained in:
commit
56e832ee43
@ -110,7 +110,7 @@ int normHamming(const uchar* a, const uchar* b, int n)
|
||||
{
|
||||
v_uint64x2 t = v_setzero_u64();
|
||||
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);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user