From 63e59e7ec0687c1712970a11adcebec2812645eb Mon Sep 17 00:00:00 2001 From: Tommy Vaillancourt Date: Fri, 30 Aug 2024 13:51:31 -0400 Subject: [PATCH 1/2] Additon of _sat to shl in FEC_pitch_estim_fx() --- lib_dec/FEC_pitch_estim_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/FEC_pitch_estim_fx.c b/lib_dec/FEC_pitch_estim_fx.c index d12c4b30a..80802e904 100644 --- a/lib_dec/FEC_pitch_estim_fx.c +++ b/lib_dec/FEC_pitch_estim_fx.c @@ -57,7 +57,7 @@ void FEC_pitch_estim_fx( tmp = mult_r( pitch_buf[1], 22938 ); /*Q6( 0.7f * pitch_buf[1] 0.7 in Q15)*/ tmp1 = shl( tmp, 1 ); /*Q6 (1.4f * pitch_buf[1])*/ tmp2 = round_fx( L_shl( Mpy_32_16_1( old_pitch_buf[2 * NB_SUBFR - 1], 22938 ), 6 ) ); /*Q6 (0.7f * old_pitch_buf[2*NB_SUBFR-1])*/ - tmp3 = shl( tmp2, 1 ); /*Q6 (1.4f * old_pitch_buf[2*NB_SUBFR-1])*/ + tmp3 = shl_sat( tmp2, 1 ); /*Q6 (1.4f * old_pitch_buf[2*NB_SUBFR-1])*/ tmp16k1 = round_fx( L_shl( Mpy_32_16_1( old_pitch_buf[2 * NB_SUBFR16k - 1], 22938 ), 6 ) ); /*Q6 0.7f * old_pitch_buf[2*NB_SUBFR16k-1]*/ #ifdef BASOP_NOGLOB -- GitLab From d7c6affd2c96430836e846a9d8e11e3bed47fcdf Mon Sep 17 00:00:00 2001 From: Tommy Vaillancourt Date: Fri, 30 Aug 2024 14:51:27 -0400 Subject: [PATCH 2/2] fix clang --- lib_dec/FEC_pitch_estim_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/FEC_pitch_estim_fx.c b/lib_dec/FEC_pitch_estim_fx.c index 80802e904..36fec6a4a 100644 --- a/lib_dec/FEC_pitch_estim_fx.c +++ b/lib_dec/FEC_pitch_estim_fx.c @@ -57,7 +57,7 @@ void FEC_pitch_estim_fx( tmp = mult_r( pitch_buf[1], 22938 ); /*Q6( 0.7f * pitch_buf[1] 0.7 in Q15)*/ tmp1 = shl( tmp, 1 ); /*Q6 (1.4f * pitch_buf[1])*/ tmp2 = round_fx( L_shl( Mpy_32_16_1( old_pitch_buf[2 * NB_SUBFR - 1], 22938 ), 6 ) ); /*Q6 (0.7f * old_pitch_buf[2*NB_SUBFR-1])*/ - tmp3 = shl_sat( tmp2, 1 ); /*Q6 (1.4f * old_pitch_buf[2*NB_SUBFR-1])*/ + tmp3 = shl_sat( tmp2, 1 ); /*Q6 (1.4f * old_pitch_buf[2*NB_SUBFR-1])*/ tmp16k1 = round_fx( L_shl( Mpy_32_16_1( old_pitch_buf[2 * NB_SUBFR16k - 1], 22938 ), 6 ) ); /*Q6 0.7f * old_pitch_buf[2*NB_SUBFR16k-1]*/ #ifdef BASOP_NOGLOB -- GitLab