commit 216f84a92a176a124fa0700e2bc2e7d6710d9e5c
parent df301a252c9a512a3013ce3d1e1db036eab47f1e
Author: [email protected] <[email protected]>
Date: Sat, 27 Jan 2024 08:42:15 +0000
Use _mm256_insertf128_si256 in KFR_mm256_setr_m128i
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/kfr/simd/impl/backend_generic.hpp b/include/kfr/simd/impl/backend_generic.hpp
@@ -716,8 +716,7 @@ KFR_INTRINSIC __m256i KFR_mm256_setr_m128i(__m128i x, __m128i y)
#ifdef CMT_ARCH_AVX2
return _mm256_inserti128_si256(_mm256_castsi128_si256(x), y, 1);
#else
- return _mm256_castps_si256(
- _mm256_insertf128_ps(_mm256_castps128_ps256(_mm_castsi128_ps(x)), _mm_castsi128_ps(y), 1));
+ return _mm256_insertf128_si256(_mm256_castsi128_si256(x), y, 1);
#endif
}