aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixer/mixer_neon.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-29 23:39:04 -0700
committerChris Robinson <[email protected]>2019-09-29 23:39:04 -0700
commitc833af9ecd6ed51fcfacc42bbdad16175b882279 (patch)
treeab44421401840d66e6dda07f6aa69de880c592a8 /alc/mixer/mixer_neon.cpp
parentfb56b020412eb090d9ce4e2ffcc691766e5214b2 (diff)
Repack the bsinc resamplers coefficients
This puts the base coefficients and the phase deltas next to each other. This improves caching, as the base and phase deltas are always used together while the scales are only used for the non-fast versions.
Diffstat (limited to 'alc/mixer/mixer_neon.cpp')
-rw-r--r--alc/mixer/mixer_neon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/mixer/mixer_neon.cpp b/alc/mixer/mixer_neon.cpp
index 178c7d6e..75faa61f 100644
--- a/alc/mixer/mixer_neon.cpp
+++ b/alc/mixer/mixer_neon.cpp
@@ -91,9 +91,9 @@ const ALfloat *Resample_<BSincTag,NEONTag>(const InterpState *state, const ALflo
{
const float32x4_t pf4{vdupq_n_f32(pf)};
const float *fil{filter + m*pi*4};
- const float *scd{fil + m};
- const float *phd{scd + m};
- const float *spd{phd + m};
+ const float *phd{fil + m};
+ const float *scd{phd + m};
+ const float *spd{scd + m};
size_t td{m >> 2};
size_t j{0u};
@@ -140,7 +140,7 @@ const ALfloat *Resample_<FastBSincTag,NEONTag>(const InterpState *state,
{
const float32x4_t pf4{vdupq_n_f32(pf)};
const float *fil{filter + m*pi*4};
- const float *phd{fil + m*2};
+ const float *phd{fil + m};
size_t td{m >> 2};
size_t j{0u};