aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse41.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-08 13:43:19 -0700
committerChris Robinson <[email protected]>2017-04-08 13:43:19 -0700
commit319d0971986309d7882a9be42a5aef7dc612945d (patch)
tree4c05460eaa7949e7438969dd60b5d3d8d769a0da /Alc/mixer_sse41.c
parent5ef7d8fe6248bccc8edf895afece8e1b44b0f4ea (diff)
Pre-compute the sinc4 resampler coefficient table
Diffstat (limited to 'Alc/mixer_sse41.c')
-rw-r--r--Alc/mixer_sse41.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mixer_sse41.c b/Alc/mixer_sse41.c
index 61be4cae..d5f06d90 100644
--- a/Alc/mixer_sse41.c
+++ b/Alc/mixer_sse41.c
@@ -109,10 +109,10 @@ const ALfloat *Resample_fir4_32_SSE41(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);