aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_neon.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_neon.c
parent5ef7d8fe6248bccc8edf895afece8e1b44b0f4ea (diff)
Pre-compute the sinc4 resampler coefficient table
Diffstat (limited to 'Alc/mixer_neon.c')
-rw-r--r--Alc/mixer_neon.c8
1 files changed, 4 insertions, 4 deletions
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);