Commit c0b68741 authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

saturation for +10 dB tests

parent 502991f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6525,11 +6525,12 @@ void prep_tbe_exc_ivas_fx(
        {
            L_tmp = L_mult( gain_code16, tmp_code_fx[i] );                                     /* Q9 + Q_exc + 1*/
            L_tmp = L_shl( L_tmp, 5 );                                                         /* Q9 + Q_exc + Q6*/
            L_tmp = L_mac( L_tmp, gain_pit_fx, bwe_exc_fx[i + i_subfr_fx * HIBND_ACB_L_FAC] ); /*Q15+Q_exc */
#ifdef BASOP_NOGLOB
            L_tmp = L_mac_o(L_tmp, gain_pit_fx, bwe_exc_fx[i + i_subfr_fx * HIBND_ACB_L_FAC], &Overflow ); /*Q15+Q_exc */
            L_tmp = L_shl_o( L_tmp, 1, &Overflow ); /*16+Q_exc */                          /* saturation can occur here */
            bwe_exc_fx[i + i_subfr_fx * HIBND_ACB_L_FAC] = round_fx_o( L_tmp, &Overflow ); /*Q_exc */
#else                                                                                      /* BASOP_NOGLOB */
            L_tmp = L_mac(L_tmp, gain_pit_fx, bwe_exc_fx[i + i_subfr_fx * HIBND_ACB_L_FAC]); /*Q15+Q_exc */
            L_tmp = L_shl( L_tmp, 1 ); /*16+Q_exc */                          /* saturation can occur here */
            bwe_exc_fx[i + i_subfr_fx * HIBND_ACB_L_FAC] = round_fx( L_tmp ); /*Q_exc */
#endif                                                                                     /* BASOP_NOGLOB */