Skip to content

Commit

Permalink
Fix AVX-512 compilation error on gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-toto committed Jun 22, 2023
1 parent e0a6337 commit 610ac54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/recoil/simd/rans_decoder_avx512_32x16n.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace Recoil {
auto renormCount = std::popcount(static_cast<unsigned int>(renormMask));
auto bitstreamPtr = reinterpret_cast<const __m256i*>(&(*this->bitstreamReverseIt) - RansBatchSize + 1);

u32x16 nextBitstream = _mm512_permutevar_epi32(reverseMask, _mm512_cvtepu16_epi32(_mm256_loadu_si256(bitstreamPtr)));
u32x16 nextBitstream = _mm512_permutexvar_epi32(reverseMask, _mm512_cvtepu16_epi32(_mm256_loadu_si256(bitstreamPtr)));
u32x16 nextStates = _mm512_maskz_expand_epi32(renormMask, nextBitstream);

ransSimd = _mm512_or_si512(_mm512_mask_slli_epi32(ransSimd, renormMask, ransSimd, WriteBits), nextStates);
Expand Down

0 comments on commit 610ac54

Please sign in to comment.