Loading lib_com/basop_util.c +4 −0 Original line number Diff line number Diff line Loading @@ -1248,7 +1248,11 @@ Word16 getSqrtWord32(Word32 val) exp = sub(31-32, exp2); L_temp = Isqrt_lc(L_temp2, &exp); /* 12 clks */ #ifdef BASOP_NOGLOB temp = round_fx_sat(L_temp); #else temp = round_fx(L_temp); #endif L_temp = Mult_32_16(L_temp2, temp); /* 2 clks */ L_temp = L_shl(L_temp, sub(exp, exp2)); Loading lib_dec/swb_bwe_dec_hr_fx.c +11 −0 Original line number Diff line number Diff line Loading @@ -175,8 +175,13 @@ static Word16 TD_Postprocess( /* o : gain in Q15 */ L_Energy = Sqrt_Ratio32(L_Energy, temp1, L_Energy2, temp2, &temp); /* Put Back to Q31 (Let it saturate to 0.99999 in fx because we wanted to limit the gain to 1.0 anyways) */ #ifdef BASOP_NOGLOB L_Energy = L_shl_sat(L_Energy, temp); temp = round_fx_sat(L_Energy); #else L_Energy = L_shl(L_Energy, temp); temp = round_fx(L_Energy); #endif test(); IF( EQ_16(last_extl, SWB_BWE)||EQ_16(last_extl,FB_BWE)) Loading Loading @@ -214,9 +219,15 @@ static Word16 TD_Postprocess( /* o : gain in Q15 */ FOR( i = ind2; i < input_frame; i++ ) { #ifdef BASOP_NOGLOB hb_synth_fx[i] = mult_r_sat(round_fx_sat(L_Energy), hb_synth_fx[i]); move16(); L_Energy = L_add_sat(L_Energy, L_Energy2); #else hb_synth_fx[i] = mult_r(round_fx(L_Energy), hb_synth_fx[i]); move16(); L_Energy = L_add(L_Energy, L_Energy2); #endif } } } Loading Loading
lib_com/basop_util.c +4 −0 Original line number Diff line number Diff line Loading @@ -1248,7 +1248,11 @@ Word16 getSqrtWord32(Word32 val) exp = sub(31-32, exp2); L_temp = Isqrt_lc(L_temp2, &exp); /* 12 clks */ #ifdef BASOP_NOGLOB temp = round_fx_sat(L_temp); #else temp = round_fx(L_temp); #endif L_temp = Mult_32_16(L_temp2, temp); /* 2 clks */ L_temp = L_shl(L_temp, sub(exp, exp2)); Loading
lib_dec/swb_bwe_dec_hr_fx.c +11 −0 Original line number Diff line number Diff line Loading @@ -175,8 +175,13 @@ static Word16 TD_Postprocess( /* o : gain in Q15 */ L_Energy = Sqrt_Ratio32(L_Energy, temp1, L_Energy2, temp2, &temp); /* Put Back to Q31 (Let it saturate to 0.99999 in fx because we wanted to limit the gain to 1.0 anyways) */ #ifdef BASOP_NOGLOB L_Energy = L_shl_sat(L_Energy, temp); temp = round_fx_sat(L_Energy); #else L_Energy = L_shl(L_Energy, temp); temp = round_fx(L_Energy); #endif test(); IF( EQ_16(last_extl, SWB_BWE)||EQ_16(last_extl,FB_BWE)) Loading Loading @@ -214,9 +219,15 @@ static Word16 TD_Postprocess( /* o : gain in Q15 */ FOR( i = ind2; i < input_frame; i++ ) { #ifdef BASOP_NOGLOB hb_synth_fx[i] = mult_r_sat(round_fx_sat(L_Energy), hb_synth_fx[i]); move16(); L_Energy = L_add_sat(L_Energy, L_Energy2); #else hb_synth_fx[i] = mult_r(round_fx(L_Energy), hb_synth_fx[i]); move16(); L_Energy = L_add(L_Energy, L_Energy2); #endif } } } Loading