Skip to content

Commit

Permalink
Use _mm256_insertf128_si256 in KFR_mm256_setr_m128i
Browse files Browse the repository at this point in the history
  • Loading branch information
dancazarin committed Jan 27, 2024
1 parent 2580fd1 commit 657899e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/kfr/simd/impl/backend_generic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 657899e

Please sign in to comment.