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_neon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/mixer_neon.c') diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c index 390a1dd2..0ceb9328 100644 --- a/Alc/mixer_neon.c +++ b/Alc/mixer_neon.c @@ -90,10 +90,10 @@ const ALfloat *Resample_fir4_32_Neon(const InterpState* UNUSED(state), const float32x4_t val1 = vld1q_f32(&src[pos_[1]]); const float32x4_t val2 = vld1q_f32(&src[pos_[2]]); const float32x4_t val3 = vld1q_f32(&src[pos_[3]]); - float32x4_t k0 = vld1q_f32(ResampleCoeffs_FIR4[frac_[0]]); - float32x4_t k1 = vld1q_f32(ResampleCoeffs_FIR4[frac_[1]]); - float32x4_t k2 = vld1q_f32(ResampleCoeffs_FIR4[frac_[2]]); - float32x4_t k3 = vld1q_f32(ResampleCoeffs_FIR4[frac_[3]]); + float32x4_t k0 = vld1q_f32(sinc4Tab[frac_[0]]); + float32x4_t k1 = vld1q_f32(sinc4Tab[frac_[1]]); + float32x4_t k2 = vld1q_f32(sinc4Tab[frac_[2]]); + float32x4_t k3 = vld1q_f32(sinc4Tab[frac_[3]]); float32x4_t out; k0 = vmulq_f32(k0, val0); -- cgit v1.2.3