Loading lib_com/basop_util.c +7 −0 Original line number Diff line number Diff line Loading @@ -816,6 +816,9 @@ Word16 divide3232(Word32 L_num, Word32 L_denom) { Word16 z; Word32 sign; #ifdef BASOP_NOGLOB Flag Overflow = 0; #endif sign = L_and(L_xor(L_num,L_denom),0x80000000); Loading @@ -829,7 +832,11 @@ Word16 divide3232(Word32 L_num, Word32 L_denom) L_denom = L_shl(L_denom,z); /* round_fx instead of extract_h improves spectral distortion in E_UTIL_lev_dur (schur version). */ #ifdef BASOP_NOGLOB z = div_l(L_num, round_fx_o(L_denom, &Overflow)); #else z = div_l(L_num,round_fx(L_denom)); #endif if (0 != sign) { z = negate(z); Loading lib_dec/core_switching_dec_fx.c +7 −0 Original line number Diff line number Diff line Loading @@ -1092,6 +1092,9 @@ ivas_error core_switching_post_dec_fx( FD_BWE_DEC_HANDLE hBWE_FD; HQ_DEC_HANDLE hHQ_core; ivas_error error; #ifdef BASOP_NOGLOB Flag Overflow = 0; #endif #ifdef IVAS_CODE_SWITCHING int16_t offset; #endif Loading Loading @@ -1229,7 +1232,11 @@ ivas_error core_switching_post_dec_fx( FOR( i=0; i<shift; i++ ) { L_tmp = L_mult((*ptmp1), tmpF); /*Qsynth + 16*/ #ifdef BASOP_NOGLOB *ptmp1 = round_fx(L_mac(L_tmp, add_o(sub(24576, tmpF), 8192, &Overflow), (*ptmp2))); /*Qsynth*/ #else *ptmp1 = round_fx( L_mac( L_tmp, add(sub(24576, tmpF),8192), (*ptmp2))); /*Qsynth*/ #endif tmpF = add(tmpF, tmp); ptmp1++; ptmp2++; Loading lib_dec/er_dec_tcx.c +4 −0 Original line number Diff line number Diff line Loading @@ -852,7 +852,11 @@ void con_tcx( tmp16 = add(L_frame,shr(L_frame,1)); FOR( i=0 ; i< tmp16; i++ ) { #ifdef BASOP_NOGLOB exc[i] = add_o(exc[i], shl(noise[i + (L_FIR_FER2 / 2)], Q_exc + noise_e), &Overflow);/*Q1*/ move16(); #else exc[i] = add(exc[i] , shl(noise[i+(L_FIR_FER2/2)],Q_exc+noise_e));/*Q1*/ move16(); #endif } } ELSE Loading Loading
lib_com/basop_util.c +7 −0 Original line number Diff line number Diff line Loading @@ -816,6 +816,9 @@ Word16 divide3232(Word32 L_num, Word32 L_denom) { Word16 z; Word32 sign; #ifdef BASOP_NOGLOB Flag Overflow = 0; #endif sign = L_and(L_xor(L_num,L_denom),0x80000000); Loading @@ -829,7 +832,11 @@ Word16 divide3232(Word32 L_num, Word32 L_denom) L_denom = L_shl(L_denom,z); /* round_fx instead of extract_h improves spectral distortion in E_UTIL_lev_dur (schur version). */ #ifdef BASOP_NOGLOB z = div_l(L_num, round_fx_o(L_denom, &Overflow)); #else z = div_l(L_num,round_fx(L_denom)); #endif if (0 != sign) { z = negate(z); Loading
lib_dec/core_switching_dec_fx.c +7 −0 Original line number Diff line number Diff line Loading @@ -1092,6 +1092,9 @@ ivas_error core_switching_post_dec_fx( FD_BWE_DEC_HANDLE hBWE_FD; HQ_DEC_HANDLE hHQ_core; ivas_error error; #ifdef BASOP_NOGLOB Flag Overflow = 0; #endif #ifdef IVAS_CODE_SWITCHING int16_t offset; #endif Loading Loading @@ -1229,7 +1232,11 @@ ivas_error core_switching_post_dec_fx( FOR( i=0; i<shift; i++ ) { L_tmp = L_mult((*ptmp1), tmpF); /*Qsynth + 16*/ #ifdef BASOP_NOGLOB *ptmp1 = round_fx(L_mac(L_tmp, add_o(sub(24576, tmpF), 8192, &Overflow), (*ptmp2))); /*Qsynth*/ #else *ptmp1 = round_fx( L_mac( L_tmp, add(sub(24576, tmpF),8192), (*ptmp2))); /*Qsynth*/ #endif tmpF = add(tmpF, tmp); ptmp1++; ptmp2++; Loading
lib_dec/er_dec_tcx.c +4 −0 Original line number Diff line number Diff line Loading @@ -852,7 +852,11 @@ void con_tcx( tmp16 = add(L_frame,shr(L_frame,1)); FOR( i=0 ; i< tmp16; i++ ) { #ifdef BASOP_NOGLOB exc[i] = add_o(exc[i], shl(noise[i + (L_FIR_FER2 / 2)], Q_exc + noise_e), &Overflow);/*Q1*/ move16(); #else exc[i] = add(exc[i] , shl(noise[i+(L_FIR_FER2/2)],Q_exc+noise_e));/*Q1*/ move16(); #endif } } ELSE Loading