Loading lib_com/hq_tools_fx.c +9 −0 Original line number Diff line number Diff line Loading @@ -917,11 +917,20 @@ void harm_bwe_fx( FOR(sfm = sfm_start[i]; sfm < sfm_end[i]; sfm++) { L_tmp = Mult_32_16(E_L,coeff_fine[sfm]); /*Q19 19 + 15 +1-16 */ #ifdef BASOP_NOGLOB L_tmp = L_shl_sat(L_tmp,9);/*Q28 */ #else L_tmp = L_shl(L_tmp,9);/*Q28 */ #endif tmp = Random(bwe_seed); /*Q15 */ L_tmp2 =L_shr(L_mult(beta,tmp),3);/* Q28 31-3 15+15 +1-3 */ #ifdef BASOP_NOGLOB L_tmp =L_add_sat(L_tmp,L_tmp2);/*Q28 */ coeff_out[sfm] = L_shl_sat(Mult_32_32(L_tmp, normq),1);/*Q12 28 +14 +1 -31 */ move32(); #else L_tmp =L_add(L_tmp,L_tmp2);/*Q28 */ coeff_out[sfm] = L_shl(Mult_32_32(L_tmp, normq),1);/*Q12 28 +14 +1 -31 */ move32(); #endif } } Loading lib_dec/swb_bwe_dec_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -673,7 +673,11 @@ Word16 swb_bwe_gain_deq_fx( /* o : BWE class */ FOR(n_band = 0; n_band < 5; n_band++) { #ifdef BASOP_NOGLOB SWB_fenv[add(shl(n_band,1),1)] = add_sat(shr(add_sat(quant_tmp[n_band], quant_tmp[n_band+1]),1), quant_tmp2[n_band+1]); #else SWB_fenv[add(shl(n_band,1),1)] = add(shr(add(quant_tmp[n_band], quant_tmp[n_band+1]),1), quant_tmp2[n_band+1]); #endif move16();/*Q8 */ } Loading Loading
lib_com/hq_tools_fx.c +9 −0 Original line number Diff line number Diff line Loading @@ -917,11 +917,20 @@ void harm_bwe_fx( FOR(sfm = sfm_start[i]; sfm < sfm_end[i]; sfm++) { L_tmp = Mult_32_16(E_L,coeff_fine[sfm]); /*Q19 19 + 15 +1-16 */ #ifdef BASOP_NOGLOB L_tmp = L_shl_sat(L_tmp,9);/*Q28 */ #else L_tmp = L_shl(L_tmp,9);/*Q28 */ #endif tmp = Random(bwe_seed); /*Q15 */ L_tmp2 =L_shr(L_mult(beta,tmp),3);/* Q28 31-3 15+15 +1-3 */ #ifdef BASOP_NOGLOB L_tmp =L_add_sat(L_tmp,L_tmp2);/*Q28 */ coeff_out[sfm] = L_shl_sat(Mult_32_32(L_tmp, normq),1);/*Q12 28 +14 +1 -31 */ move32(); #else L_tmp =L_add(L_tmp,L_tmp2);/*Q28 */ coeff_out[sfm] = L_shl(Mult_32_32(L_tmp, normq),1);/*Q12 28 +14 +1 -31 */ move32(); #endif } } Loading
lib_dec/swb_bwe_dec_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -673,7 +673,11 @@ Word16 swb_bwe_gain_deq_fx( /* o : BWE class */ FOR(n_band = 0; n_band < 5; n_band++) { #ifdef BASOP_NOGLOB SWB_fenv[add(shl(n_band,1),1)] = add_sat(shr(add_sat(quant_tmp[n_band], quant_tmp[n_band+1]),1), quant_tmp2[n_band+1]); #else SWB_fenv[add(shl(n_band,1),1)] = add(shr(add(quant_tmp[n_band], quant_tmp[n_band+1]),1), quant_tmp2[n_band+1]); #endif move16();/*Q8 */ } Loading