diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/mixer/mixer_neon.cpp | 2 | ||||
-rw-r--r-- | core/mixer/mixer_sse.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/mixer/mixer_neon.cpp b/core/mixer/mixer_neon.cpp index a3afdc6b..7b6e5ebf 100644 --- a/core/mixer/mixer_neon.cpp +++ b/core/mixer/mixer_neon.cpp @@ -245,7 +245,7 @@ void Mix_<NEONTag>(const al::span<const float> InSamples, const al::span<FloatBu { float step_count{0.0f}; /* Mix with applying gain steps in aligned multiples of 4. */ - if(size_t todo{(min_len-pos) >> 2}) + if(size_t todo{min_len >> 2}) { const float32x4_t four4{vdupq_n_f32(4.0f)}; const float32x4_t step4{vdupq_n_f32(step)}; diff --git a/core/mixer/mixer_sse.cpp b/core/mixer/mixer_sse.cpp index 22e20398..fc4d8cc6 100644 --- a/core/mixer/mixer_sse.cpp +++ b/core/mixer/mixer_sse.cpp @@ -211,7 +211,7 @@ void Mix_<SSETag>(const al::span<const float> InSamples, const al::span<FloatBuf { float step_count{0.0f}; /* Mix with applying gain steps in aligned multiples of 4. */ - if(size_t todo{(min_len-pos) >> 2}) + if(size_t todo{min_len >> 2}) { const __m128 four4{_mm_set1_ps(4.0f)}; const __m128 step4{_mm_set1_ps(step)}; |