diff options
author | Chris Robinson <[email protected]> | 2022-04-01 09:47:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-04-01 09:47:32 -0700 |
commit | 1e8e63067c1cf88ef19d987dcd2fd6bdc7ff4a5d (patch) | |
tree | 91fa14aeca1db4f8eee98e8c793cf1245aa84d09 /core/mixer | |
parent | 6f9311b1ba26211895b507670b421356cc305bee (diff) |
Remove an unnecessary subtraction
Diffstat (limited to 'core/mixer')
-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)}; |