Loading lib_com/swb_tbe_com_fx.c +5 −0 Original line number Diff line number Diff line Loading @@ -3983,8 +3983,13 @@ void prep_tbe_exc_fx( { /*code in the encoder is Q9 and there is no <<1 with Mult_32_16 Q16 * Q9 -> Q9 */ Ltemp1 = Mult_32_16(gain_code_fx, code_fx[i]); /* Q16 + Q9 + 1 - 16 = Q10 */ #ifdef BASOP_NOGLOB Ltemp1 = L_shl_o( Ltemp1, Q_exc+6 /*Q_exc+16-19*/, &Overflow) ; /*Q_exc+16 */ tmp_code_preInt_fx[i] = round_fx_o(Ltemp1, &Overflow); /* Q_exc */ #else Ltemp1 = L_shl( Ltemp1, Q_exc+6 /*Q_exc+16-19*/) ; /*Q_exc+16 */ tmp_code_preInt_fx[i] = round_fx(Ltemp1); /* Q_exc */ #endif } } Loading Loading
lib_com/swb_tbe_com_fx.c +5 −0 Original line number Diff line number Diff line Loading @@ -3983,8 +3983,13 @@ void prep_tbe_exc_fx( { /*code in the encoder is Q9 and there is no <<1 with Mult_32_16 Q16 * Q9 -> Q9 */ Ltemp1 = Mult_32_16(gain_code_fx, code_fx[i]); /* Q16 + Q9 + 1 - 16 = Q10 */ #ifdef BASOP_NOGLOB Ltemp1 = L_shl_o( Ltemp1, Q_exc+6 /*Q_exc+16-19*/, &Overflow) ; /*Q_exc+16 */ tmp_code_preInt_fx[i] = round_fx_o(Ltemp1, &Overflow); /* Q_exc */ #else Ltemp1 = L_shl( Ltemp1, Q_exc+6 /*Q_exc+16-19*/) ; /*Q_exc+16 */ tmp_code_preInt_fx[i] = round_fx(Ltemp1); /* Q_exc */ #endif } } Loading