1
0
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:
ChipKerchner
2019-08-27 12:15:19 -05:00
parent d513fb4c8e
commit 288e6f9c07
2 changed files with 77 additions and 13 deletions
+1
View File
@@ -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