From 99502e99cc35d08cb95828488e61df8c8d12121a Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 26 Mar 2020 16:27:23 +0000 Subject: [PATCH] gapi(simd): initialize accumulator values --- modules/gapi/src/backends/fluid/gfluidimgproc_func.simd.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gapi/src/backends/fluid/gfluidimgproc_func.simd.hpp b/modules/gapi/src/backends/fluid/gfluidimgproc_func.simd.hpp index e0d10e4ecd..9766cf7cc6 100644 --- a/modules/gapi/src/backends/fluid/gfluidimgproc_func.simd.hpp +++ b/modules/gapi/src/backends/fluid/gfluidimgproc_func.simd.hpp @@ -1831,7 +1831,7 @@ static void run_sepfilter5x5_char2short(short out[], const uchar *in[], int widt for (; l <= length - nlanes; l += nlanes) { v_uint16 t[kxLen]; - v_int16 sum; + v_int16 sum = vx_setzero_s16(); for (int i = 0; i < kxLen; ++i) { @@ -1862,7 +1862,7 @@ static void run_sepfilter5x5_char2short(short out[], const uchar *in[], int widt for (; l <= length - nlanes; l += nlanes) { v_int16 s[buffSize]; - v_int16 sum; + v_int16 sum = vx_setzero_s16(); for (int i = 0; i < kyLen; ++i) {