Skip to content

Commit

Permalink
Fix _mm_loadu_si64 not available in GCC8
Browse files Browse the repository at this point in the history
This preserves BC while allowing compilation on older systems like Debian 10.
  • Loading branch information
razvanphp authored Sep 17, 2024
1 parent ff6dea5 commit 9a0e281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silk/x86/NSQ_del_dec_avx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ static OPUS_INLINE void silk_nsq_del_dec_scale_states_avx2(
inv_gain_Q26 = silk_sar_round_32(inv_gain_Q31, 5);
for (i = 0; i < psEncC->subfr_length; i+=4)
{
__m256i x = _mm256_cvtepi16_epi64(_mm_loadu_si64(&x16[i]));
__m256i x = _mm256_cvtepi16_epi64(_mm_loadl_epi64(&x16[i]));
x = _mm256_slli_epi64(_mm256_mul_epi32(x, _mm256_set1_epi32(inv_gain_Q26)), 16);
_mm_storeu_si128((__m128i*)&x_sc_Q10[i], silk_cvtepi64_epi32_high(x));
}
Expand Down

0 comments on commit 9a0e281

Please sign in to comment.