aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse2.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/mixer_sse2.c')
-rw-r--r--Alc/mixer_sse2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/mixer_sse2.c b/Alc/mixer_sse2.c
index 39109245..09a797c3 100644
--- a/Alc/mixer_sse2.c
+++ b/Alc/mixer_sse2.c
@@ -77,7 +77,7 @@ const ALfloat *Resample_lerp32_SSE2(const ALfloat *src, ALuint frac, ALuint incr
return dst;
}
-const ALfloat *Resample_cubic32_SSE2(const ALfloat *src, ALuint frac, ALuint increment,
+const ALfloat *Resample_fir4_32_SSE2(const ALfloat *src, ALuint frac, ALuint increment,
ALfloat *restrict dst, ALuint numsamples)
{
const __m128i increment4 = _mm_set1_epi32(increment*4);
@@ -100,10 +100,10 @@ const ALfloat *Resample_cubic32_SSE2(const ALfloat *src, ALuint frac, ALuint inc
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(CubicLUT[frac_.i[0]]);
- __m128 k1 = _mm_load_ps(CubicLUT[frac_.i[1]]);
- __m128 k2 = _mm_load_ps(CubicLUT[frac_.i[2]]);
- __m128 k3 = _mm_load_ps(CubicLUT[frac_.i[3]]);
+ __m128 k0 = _mm_load_ps(ResampleCoeffs[frac_.i[0]]);
+ __m128 k1 = _mm_load_ps(ResampleCoeffs[frac_.i[1]]);
+ __m128 k2 = _mm_load_ps(ResampleCoeffs[frac_.i[2]]);
+ __m128 k3 = _mm_load_ps(ResampleCoeffs[frac_.i[3]]);
__m128 out;
k0 = _mm_mul_ps(k0, val0);
@@ -130,7 +130,7 @@ const ALfloat *Resample_cubic32_SSE2(const ALfloat *src, ALuint frac, ALuint inc
for(;i < numsamples;i++)
{
- dst[i] = cubic(src[pos], src[pos+1], src[pos+2], src[pos+3], frac);
+ dst[i] = resample_fir4(src[pos], src[pos+1], src[pos+2], src[pos+3], frac);
frac += increment;
pos += frac>>FRACTIONBITS;