From 319d0971986309d7882a9be42a5aef7dc612945d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 8 Apr 2017 13:43:19 -0700 Subject: Pre-compute the sinc4 resampler coefficient table --- Alc/mixer_sse3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/mixer_sse3.c') diff --git a/Alc/mixer_sse3.c b/Alc/mixer_sse3.c index 861cfc38..142cd363 100644 --- a/Alc/mixer_sse3.c +++ b/Alc/mixer_sse3.c @@ -55,10 +55,10 @@ const ALfloat *Resample_fir4_32_SSE3(const InterpState* UNUSED(state), const __m128 val1 = _mm_loadu_ps(&src[pos_.i[1]]); const __m128 val2 = _mm_loadu_ps(&src[pos_.i[2]]); const __m128 val3 = _mm_loadu_ps(&src[pos_.i[3]]); - __m128 k0 = _mm_load_ps(ResampleCoeffs_FIR4[frac_.i[0]]); - __m128 k1 = _mm_load_ps(ResampleCoeffs_FIR4[frac_.i[1]]); - __m128 k2 = _mm_load_ps(ResampleCoeffs_FIR4[frac_.i[2]]); - __m128 k3 = _mm_load_ps(ResampleCoeffs_FIR4[frac_.i[3]]); + __m128 k0 = _mm_load_ps(sinc4Tab[frac_.i[0]]); + __m128 k1 = _mm_load_ps(sinc4Tab[frac_.i[1]]); + __m128 k2 = _mm_load_ps(sinc4Tab[frac_.i[2]]); + __m128 k3 = _mm_load_ps(sinc4Tab[frac_.i[3]]); __m128 out; k0 = _mm_mul_ps(k0, val0); -- cgit v1.2.3