mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Fixed memory access issue in v_rshr_pack_store intrinsic on RISC-V RVV.
This commit is contained in:
parent
da07ad16c1
commit
6a2e559222
@ -1967,7 +1967,7 @@ void v_rshr_pack_store(_Tp* ptr, const _wTpvec& a) \
|
||||
_wTp arr[_Tpvec::nlanes] = {0}; \
|
||||
v_store(arr, a); \
|
||||
v_store(arr + _wTpvec::nlanes, _wTpvec(vmv_v_x_##suffix##m1(0, hvl))); \
|
||||
v_store(ptr, _Tpvec(rshr(vle##width##_v_##suffix##m2(arr, vl), n, vl))); \
|
||||
vse##hwidth##_v_##hsuffix##m1(ptr, _Tpvec(rshr(vle##width##_v_##suffix##m2(arr, vl), n, vl)), hvl); \
|
||||
}
|
||||
|
||||
OPENCV_HAL_IMPL_RVV_PACK(v_uint8x16, uchar, v_uint16x8, ushort, 8, 16, u8, u16, vnclipu_wx_u8m1, vnclipu_wx_u8m1, 8, 16)
|
||||
|
Loading…
Reference in New Issue
Block a user