Skip to content

Commit

Permalink
configure.ac: cast utest to __m128i_u* in avx2 check for _mm_loadu_si128
Browse files Browse the repository at this point in the history
Fixes avx2 check in configure.ac
Fixes: xiph#361.
  • Loading branch information
sezero committed Jan 8, 2025
1 parent 7db2693 commit bba00a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,10 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[
__m256i mtest2;
mtest = _mm256_set1_ps((float)time(NULL));
mtest = _mm256_fmadd_ps(mtest, mtest, mtest);
mtest1 = _mm256_set_m128i(_mm_loadu_si64(utest), _mm_loadu_si64(utest));
mtest1 = _mm256_set_m128i(
_mm_loadl_epi64((__m128i_u *)utest), _mm_loadl_epi64((__m128i_u *)utest));
mtest2 =
_mm256_cvtepi16_epi32(_mm_loadu_si128(utest));
_mm256_cvtepi16_epi32(_mm_loadu_si128((__m128i_u *)utest));
return _mm256_extract_epi16(_mm256_xor_si256(
_mm256_xor_si256(mtest1, mtest2), _mm256_cvttps_epi32(mtest)), 0);
]]
Expand Down

0 comments on commit bba00a1

Please sign in to comment.