From 8b1fe8f6e0ef4bff4024d091131458ca83879797 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 22 Aug 2019 15:39:51 +0300 Subject: [PATCH] core: fix stat SIMD code --- modules/core/src/stat.simd.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/stat.simd.hpp b/modules/core/src/stat.simd.hpp index 34b784e12e..b8ae15dc91 100644 --- a/modules/core/src/stat.simd.hpp +++ b/modules/core/src/stat.simd.hpp @@ -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