From a68289a255d9b8800a4b027f9c141b4935a30c78 Mon Sep 17 00:00:00 2001 From: nihui Date: Sat, 24 Jun 2023 14:22:45 +0800 Subject: [PATCH] fix --- src/layer/loongarch/unaryop_loongarch.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/layer/loongarch/unaryop_loongarch.cpp b/src/layer/loongarch/unaryop_loongarch.cpp index 37502a0225c..0bff8ee7998 100644 --- a/src/layer/loongarch/unaryop_loongarch.cpp +++ b/src/layer/loongarch/unaryop_loongarch.cpp @@ -109,7 +109,7 @@ struct unary_op_floor #if __loongarch_sx __m128 func_pack4(const __m128& x) const { - return __lsx_vffint_s_w(__lsx_vfrintrm_s(x)); + return (__m128)__lsx_vfrintrm_s(x); } #endif // __loongarch_sx }; @@ -123,7 +123,7 @@ struct unary_op_ceil #if __loongarch_sx __m128 func_pack4(const __m128& x) const { - return __lsx_vffint_s_w(__lsx_vfrintrp_s(x)); + return (__m128)__lsx_vfrintrp_s(x); } #endif // __loongarch_sx }; @@ -391,9 +391,9 @@ struct unary_op_round #endif } #if __loongarch_sx - v4f32 func_pack4(const v4f32& x) const + __m128 func_pack4(const __m128& x) const { - return __lsx_vffint_s_w(__lsx_vfrintrne_s(x)); + return (__m128)__lsx_vfrintrne_s(x); } #endif // __loongarch_sx }; @@ -405,9 +405,9 @@ struct unary_op_trunc return (float)truncf(x); } #if __loongarch_sx - v4f32 func_pack4(const v4f32& x) const + __m128 func_pack4(const __m128& x) const { - return __lsx_vffint_s_w(__lsx_vftintrz_w_s(x)); + return (__m128)__lsx_vftintrz_w_s(x); } #endif // __loongarch_sx };