diff --git a/modules/core/include/opencv2/core/hal/intrin.hpp b/modules/core/include/opencv2/core/hal/intrin.hpp index 5c58ba5e5a..b2d1e23e19 100644 --- a/modules/core/include/opencv2/core/hal/intrin.hpp +++ b/modules/core/include/opencv2/core/hal/intrin.hpp @@ -721,14 +721,13 @@ namespace CV__SIMD_NAMESPACE { //! @} #ifndef OPENCV_HAL_HAVE_LOAD_STORE_BFLOAT16 - inline v_float32 vx_load_expand(const bfloat16_t* ptr) { v_uint32 v = vx_load_expand((const ushort*)ptr); return v_reinterpret_as_f32(v_shl<16>(v)); } - inline void v_pack_store(const bfloat16_t* ptr, v_float32 v) + inline void v_pack_store(const bfloat16_t* ptr, const v_float32& v) { v_int32 iv = v_shr<16>(v_reinterpret_as_s32(v)); v_pack_store((short*)ptr, iv);