From 62495f4ebe07bb3701eed336233f9693771a226b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lugand?= Date: Sun, 7 Jan 2024 21:44:30 +0100 Subject: [PATCH] Fix add unsigned to signed 16bits integers --- soh/soh/mixer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/soh/soh/mixer.c b/soh/soh/mixer.c index 00abf30f8..357c5e83c 100644 --- a/soh/soh/mixer.c +++ b/soh/soh/mixer.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "mixer.h" @@ -362,8 +363,8 @@ void aEnvMixerImpl(uint16_t in_addr, uint16_t n_samples, bool swap_reverb, // Store values to buffers for (int j = 0; j < 2; j++) { - _mm_store_si128(d_ptr[j]++, _mm_add_epi16(s[j], d[j])); - _mm_store_si128(w_ptr[j]++, _mm_add_epi16(ss[j], w[j])); + _mm_store_si128(d_ptr[j]++, _mm_adds_epi16(s[j], d[j])); + _mm_store_si128(w_ptr[j]++, _mm_adds_epi16(ss[j], w[j])); vols[j] += rates[j]; } vol_wet += rate_wet;