From c4798ce5851bd2ae0fdd6e29f37f140db603724b Mon Sep 17 00:00:00 2001 From: NTH19 <3310288189@qq.com> Date: Fri, 15 Jul 2022 00:07:05 +0800 Subject: [PATCH] fix --- utils/common/simd_arm.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/utils/common/simd_arm.h b/utils/common/simd_arm.h index f157b4475..1459614d5 100644 --- a/utils/common/simd_arm.h +++ b/utils/common/simd_arm.h @@ -365,7 +365,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_s32((uint32x4_t)mask, x, y); + return vbslq_s32((uint32x4_t)mask, y,x); } MCS_FORCE_INLINE SimdType cmpGt2(SimdType x, SimdType y) const { @@ -508,7 +508,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_f64((uint64x2_t)mask, x, y); + return vbslq_f64((uint64x2_t)mask,y,x); } MCS_FORCE_INLINE SimdType bwAnd(SimdType x, SimdType y) const @@ -636,7 +636,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_f32((uint32x4_t)mask, x, y); + return vbslq_f32((uint32x4_t)mask, y,x); } MCS_FORCE_INLINE SimdType cmpGt2(SimdType x, SimdType y) const { @@ -785,7 +785,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_s64((uint64x2_t)mask, x, y); + return vbslq_s64((uint64x2_t)mask, y,x); } MCS_FORCE_INLINE SimdType bwAnd(SimdType x, SimdType y) const @@ -906,7 +906,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_u64((uint64x2_t)mask, x, y); + return vbslq_u64((uint64x2_t)mask, y,x); } MCS_FORCE_INLINE SimdType cmpGt2(SimdType x, SimdType y) const { @@ -1039,7 +1039,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_s32((uint32x4_t)mask, x, y); + return vbslq_s32((uint32x4_t)mask, y,x); } MCS_FORCE_INLINE SimdType cmpGt2(SimdType x, SimdType y) const { @@ -1172,7 +1172,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_u32((uint32x4_t)mask, x, y); + return vbslq_u32((uint32x4_t)mask, y,x); } MCS_FORCE_INLINE SimdType cmpGt2(SimdType x, SimdType y) const { @@ -1309,7 +1309,7 @@ class SimdFilterProcessor< } MCS_FORCE_INLINE SimdType blend(SimdType x, SimdType y, SimdType mask) const { - return vbslq_s16((uint16x8_t)mask, x, y); + return vbslq_s16((uint16x8_t)mask, y,x); } MCS_FORCE_INLINE SimdType bwAnd(SimdType x, SimdType y) const @@ -1463,7 +1463,7 @@ class SimdFilterProcessor