From 9a233999a9db7bc3a368e05da274d6fce9e0bcd6 Mon Sep 17 00:00:00 2001 From: Yury Gorbachev Date: Sat, 9 Aug 2014 13:37:53 +0400 Subject: [PATCH] Fixed review comment from Vadim Pisarevsky --- modules/core/src/arithm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/arithm.cpp b/modules/core/src/arithm.cpp index 4c6ba1c..91c338b 100644 --- a/modules/core/src/arithm.cpp +++ b/modules/core/src/arithm.cpp @@ -2460,8 +2460,8 @@ addWeighted8u( const uchar* src1, size_t step1, out_f_l = vaddq_f32(out_f_l, g); out_f_h = vaddq_f32(out_f_h, g); - uint16x4_t out_16_l = vqmovn_u32(vcvtq_u32_f32(out_f_l)); - uint16x4_t out_16_h = vqmovn_u32(vcvtq_u32_f32(out_f_h)); + uint16x4_t out_16_l = vqmovun_s32(vcvtq_s32_f32(out_f_l)); + uint16x4_t out_16_h = vqmovun_s32(vcvtq_s32_f32(out_f_h)); uint16x8_t out_16 = vcombine_u16(out_16_l, out_16_h); uint8x8_t out = vqmovn_u16(out_16); -- 2.7.4