aboutsummaryrefslogtreecommitdiffstats
path: root/core/mixer/mixer_sse2.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-02 17:37:09 -0800
committerChris Robinson <[email protected]>2021-01-02 17:37:09 -0800
commit04cd0bc576947879525005b11abcd5230e215360 (patch)
tree3c14af02fb6cadcc0966b32263aade5c2816b8e3 /core/mixer/mixer_sse2.cpp
parent1f51de9983956732bdf63bff91258096eed84544 (diff)
Return non-const from the resampler function
Diffstat (limited to 'core/mixer/mixer_sse2.cpp')
-rw-r--r--core/mixer/mixer_sse2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mixer/mixer_sse2.cpp b/core/mixer/mixer_sse2.cpp
index a93a33f9..f91d5dcd 100644
--- a/core/mixer/mixer_sse2.cpp
+++ b/core/mixer/mixer_sse2.cpp
@@ -35,7 +35,7 @@ struct LerpTag;
#endif
template<>
-const float *Resample_<LerpTag,SSE2Tag>(const InterpState*, const float *RESTRICT src, uint frac,
+float *Resample_<LerpTag,SSE2Tag>(const InterpState*, float *RESTRICT src, uint frac,
uint increment, const al::span<float> dst)
{
const __m128i increment4{_mm_set1_epi32(static_cast<int>(increment*4))};
@@ -43,7 +43,7 @@ const float *Resample_<LerpTag,SSE2Tag>(const InterpState*, const float *RESTRIC
const __m128i fracMask4{_mm_set1_epi32(MixerFracMask)};
alignas(16) uint pos_[4], frac_[4];
- InitPosArrays(frac, increment, frac_, pos_, 4);
+ InitPosArrays(frac, increment, frac_, pos_);
__m128i frac4{_mm_setr_epi32(static_cast<int>(frac_[0]), static_cast<int>(frac_[1]),
static_cast<int>(frac_[2]), static_cast<int>(frac_[3]))};
__m128i pos4{_mm_setr_epi32(static_cast<int>(pos_[0]), static_cast<int>(pos_[1]),