Commit 42610d2c authored by Fabian Bauer's avatar Fabian Bauer
Browse files

replaced some L_shl with L_shl_sat

parent d0a604a7
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -541,7 +541,7 @@ Word16 E_LPC_lev_dur_stab( const Word16 Rh[] /*QR -16*/, const Word16 Rl[] /*QR
        }

#ifdef ISSUE_1836_replace_overflow_libcom
        t0 = L_shl( t0, 4 ); /* result in Q27 -> convert to Q31 */
        t0 = L_shl_sat( t0, 4 ); /* result in Q27 -> convert to Q31 */
#else
        t0 = L_shl_o( t0, 4, &Overflow ); /* result in Q27 -> convert to Q31 */
#endif
@@ -758,7 +758,7 @@ Word16 E_LPC_lev_dur_stab_ivas_fx( const Word16 Rh[], const Word16 Rl[], Word16
        }

#ifdef ISSUE_1836_replace_overflow_libcom
        t0 = L_shl( t0, 4 ); /* result in Q27 -> convert to Q31 */
        t0 = L_shl_sat( t0, 4 ); /* result in Q27 -> convert to Q31 */
#else
        t0 = L_shl_o( t0, 4, &Overflow ); /* result in Q27 -> convert to Q31 */
#endif
@@ -977,7 +977,7 @@ Word16 E_LPC_lev_dur_stab_fx( const Word16 Rh[] /*QR -16*/, const Word16 Rl[] /*
        }

#ifdef ISSUE_1836_replace_overflow_libcom
        t0 = L_shl( t0, 4 ); /* result in Q27 -> convert to Q31 */ //??sat
        t0 = L_shl_sat( t0, 4 ); /* result in Q27 -> convert to Q31 */ //??sat
#else
        t0 = L_shl_o( t0, 4, &Overflow ); /* result in Q27 -> convert to Q31 */
#endif