mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #27266 from fengyuentau:5x/loongson/build_fix
loongson/build: added v_gt and v_lt with lsx and lasx to fix build
This commit is contained in:
@@ -1010,7 +1010,11 @@ OPENCV_HAL_IMPL_LASX_CMP_OP_INT(v_uint32x8, v_int32x8, w, wu)
|
||||
inline _Tpvec v_eq(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return _Tpvec(__lasx_xvseq_##suffix(a.val, b.val)); } \
|
||||
inline _Tpvec v_ne(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return v_not(v_eq(a, b)); }
|
||||
{ return v_not(v_eq(a, b)); } \
|
||||
inline _Tpvec v_gt(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return _Tpvec(__lasx_xvslt_##suffix(b.val, a.val)); } \
|
||||
inline _Tpvec v_lt(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return _Tpvec(__lasx_xvslt_##suffix(a.val, b.val)); }
|
||||
|
||||
OPENCV_HAL_IMPL_LASX_CMP_OP_64BIT(v_uint64x4, d)
|
||||
OPENCV_HAL_IMPL_LASX_CMP_OP_64BIT(v_int64x4, d)
|
||||
|
||||
@@ -783,7 +783,11 @@ OPENCV_HAL_IMPL_LSX_CMP_OP_INT(v_uint32x4, v_int32x4, w, wu)
|
||||
inline _Tpvec v_eq(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return _Tpvec(__lsx_vseq_##suffix(a.val, b.val)); } \
|
||||
inline _Tpvec v_ne(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return v_not(v_eq(a, b)); }
|
||||
{ return v_not(v_eq(a, b)); } \
|
||||
inline _Tpvec v_gt(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return _Tpvec(__lsx_vslt_##suffix(b.val, a.val)); } \
|
||||
inline _Tpvec v_lt(const _Tpvec& a, const _Tpvec& b) \
|
||||
{ return _Tpvec(__lsx_vslt_##suffix(a.val, b.val)); }
|
||||
|
||||
OPENCV_HAL_IMPL_LSX_CMP_OP_64BIT(v_uint64x2, d)
|
||||
OPENCV_HAL_IMPL_LSX_CMP_OP_64BIT(v_int64x2, d)
|
||||
|
||||
Reference in New Issue
Block a user