aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixer/mixer_c.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_c.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_c.cpp')
-rw-r--r--alc/mixer/mixer_c.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/mixer/mixer_c.cpp b/alc/mixer/mixer_c.cpp
index fafda70d..f2164f53 100644
--- a/alc/mixer/mixer_c.cpp
+++ b/alc/mixer/mixer_c.cpp
@@ -31,9 +31,9 @@ inline ALfloat do_bsinc(const InterpState &istate, const ALfloat *RESTRICT vals,
#undef FRAC_PHASE_BITDIFF
const ALfloat *fil{istate.bsinc.filter + m*pi*4};
- const ALfloat *scd{fil + m};
- const ALfloat *phd{scd + m};
- const ALfloat *spd{phd + m};
+ const ALfloat *phd{fil + m};
+ const ALfloat *scd{phd + m};
+ const ALfloat *spd{scd + m};
// Apply the scale and phase interpolated filter.
ALfloat r{0.0f};
@@ -53,7 +53,7 @@ inline ALfloat do_fastbsinc(const InterpState &istate, const ALfloat *RESTRICT v
#undef FRAC_PHASE_BITDIFF
const ALfloat *fil{istate.bsinc.filter + m*pi*4};
- const ALfloat *phd{fil + m*2};
+ const ALfloat *phd{fil + m};
// Apply the phase interpolated filter.
ALfloat r{0.0f};