From cd15b1775e9c81283f998a874bda55821e79f3fc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 30 Aug 2017 11:30:19 -0700 Subject: Avoid some extraneous load calls This likely doesn't change anything given a working optimizer, but it cleans up the code some. --- Alc/mixer_neon.c | 23 +++++++++++------------ Alc/mixer_sse.c | 26 ++++++++++++-------------- 2 files changed, 23 insertions(+), 26 deletions(-) (limited to 'Alc') diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c index 58929e1a..b99dcf69 100644 --- a/Alc/mixer_neon.c +++ b/Alc/mixer_neon.c @@ -144,8 +144,8 @@ const ALfloat *Resample_bsinc_Neon(const InterpState *state, const ALfloat *const filter = state->bsinc.filter; const float32x4_t sf4 = vdupq_n_f32(state->bsinc.sf); const ALsizei m = state->bsinc.m; - const ALfloat *fil, *scd, *phd, *spd; - ALsizei pi, i, j; + const float32x4_t *fil, *scd, *phd, *spd; + ALsizei pi, i, j, offset; float32x4_t r4; ALfloat pf; @@ -158,23 +158,22 @@ const ALfloat *Resample_bsinc_Neon(const InterpState *state, pf = (frac & ((1<bsinc.filter; const __m128 sf4 = _mm_set1_ps(state->bsinc.sf); const ALsizei m = state->bsinc.m; - const ALfloat *fil, *scd, *phd, *spd; - ALsizei pi, i, j; + const __m128 *fil, *scd, *phd, *spd; + ALsizei pi, i, j, offset; ALfloat pf; __m128 r4; @@ -33,30 +33,28 @@ const ALfloat *Resample_bsinc_SSE(const InterpState *state, const ALfloat *restr pf = (frac & ((1<