aboutsummaryrefslogtreecommitdiffstats
path: root/core/mixer/mixer_sse.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-04-01 09:47:32 -0700
committerChris Robinson <[email protected]>2022-04-01 09:47:32 -0700
commit1e8e63067c1cf88ef19d987dcd2fd6bdc7ff4a5d (patch)
tree91fa14aeca1db4f8eee98e8c793cf1245aa84d09 /core/mixer/mixer_sse.cpp
parent6f9311b1ba26211895b507670b421356cc305bee (diff)
Remove an unnecessary subtraction
Diffstat (limited to 'core/mixer/mixer_sse.cpp')
-rw-r--r--core/mixer/mixer_sse.cpp2
1 files changed, 1 insertions, 1 deletions
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)};