Loading lib_com/swb_tbe_com_fx.c +5 −0 Original line number Diff line number Diff line Loading @@ -763,8 +763,13 @@ static void scale_st_swb( temp = mult_r(agc_fac_para_fx, gain_fx);/*15 +14 -15 =14 */ gain_fx = add(temp, g0_fx); /* in Q14 */ L_temp = L_mult(gain_fx, sig_out_fx[i]);/*14 + Q_bwe_exc-1 +1 = 14 + Q_bwe_exc */ #ifdef BASOP_NOGLOB L_temp = L_shl_sat(L_temp, 1); /*14 + Q_bwe_exc +1 */ sig_out_fx[i] = round_fx_sat(L_temp); /*Q_bwe_exc +15 -16 = Q_bwe_exc-1 */ #else L_temp = L_shl(L_temp, 1); /*14 + Q_bwe_exc +1 */ sig_out_fx[i] = round_fx(L_temp); /*Q_bwe_exc +15 -16 = Q_bwe_exc-1 */ #endif } *gain_prec_fx =gain_fx; move16(); Loading Loading
lib_com/swb_tbe_com_fx.c +5 −0 Original line number Diff line number Diff line Loading @@ -763,8 +763,13 @@ static void scale_st_swb( temp = mult_r(agc_fac_para_fx, gain_fx);/*15 +14 -15 =14 */ gain_fx = add(temp, g0_fx); /* in Q14 */ L_temp = L_mult(gain_fx, sig_out_fx[i]);/*14 + Q_bwe_exc-1 +1 = 14 + Q_bwe_exc */ #ifdef BASOP_NOGLOB L_temp = L_shl_sat(L_temp, 1); /*14 + Q_bwe_exc +1 */ sig_out_fx[i] = round_fx_sat(L_temp); /*Q_bwe_exc +15 -16 = Q_bwe_exc-1 */ #else L_temp = L_shl(L_temp, 1); /*14 + Q_bwe_exc +1 */ sig_out_fx[i] = round_fx(L_temp); /*Q_bwe_exc +15 -16 = Q_bwe_exc-1 */ #endif } *gain_prec_fx =gain_fx; move16(); Loading