mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Improve vectorization in the 'norm' functions
This commit is contained in:
@@ -39,6 +39,7 @@ int normHamming(const uchar* a, int n)
|
||||
for (; i <= n - v_uint8::nlanes; i += v_uint8::nlanes)
|
||||
t += v_popcount(v_reinterpret_as_u64(vx_load(a + i)));
|
||||
result = (int)v_reduce_sum(t);
|
||||
vx_cleanup();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user