Skip to content

Commit

Permalink
Merge pull request #3285 from rrahn/fix_avx512_shuffle
Browse files Browse the repository at this point in the history
Use explicit _MM_PERM_ENUM type for intrinsics.
  • Loading branch information
eseiler authored Aug 23, 2024
2 parents 4f2da0c + a85f336 commit abcad13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ constexpr simd_t extract_eighth_avx512(simd_t const & src)

// for uneven index exchange higher 64 bits with lower 64 bits for each 128 bit lane.
if constexpr (index % 2 == 1)
tmp = _mm512_shuffle_epi32(tmp, 0b0100'1110); // := [1, 0, 3, 2].
tmp = _mm512_shuffle_epi32(tmp, static_cast<_MM_PERM_ENUM>(0b0100'1110)); // := [1, 0, 3, 2].

return reinterpret_cast<simd_t>(_mm512_castsi128_si512(_mm512_extracti64x2_epi64(tmp, index / 2)));
}
Expand Down

0 comments on commit abcad13

Please sign in to comment.