diff --git a/lib_com/codec_tcx_common.c b/lib_com/codec_tcx_common.c index e0496ab3338528668b2d9f6432de0f57110afcc1..0cbed6d8a9e1c1e27b0dbd6e94ab160440584579 100644 --- a/lib_com/codec_tcx_common.c +++ b/lib_com/codec_tcx_common.c @@ -360,7 +360,11 @@ void tcxFormantEnhancement_with_shift( { fac = add( fac0, mult( d, extract_l( L_mult0( j, inv_int[n] ) ) ) ); BASOP_SATURATE_WARNING_OFF_EVS; +#ifdef BASOP_NOGLOB + xn_buf[l + j] = s_min( xn_one, shl_o( mult( xn_buf[l + j], fac ), fac_e, &Overflow )); +#else xn_buf[l + j] = s_min( xn_one, shl( mult( xn_buf[l + j], fac ), fac_e ) ); +#endif move16(); BASOP_SATURATE_WARNING_ON_EVS; } diff --git a/lib_dec/dec_tcx_fx.c b/lib_dec/dec_tcx_fx.c index 5a3dc3fe0cb227dbe06c515203afafa0b1f6905d..f99e835682ef3c5e84e1685a2b0cafd65fad9d86 100644 --- a/lib_dec/dec_tcx_fx.c +++ b/lib_dec/dec_tcx_fx.c @@ -2841,7 +2841,11 @@ void decoder_tcx_invQ_fx( FOR( i = 0; i < noiseFillingSize; ++i ) { tmp32 = L_shr( x[i], 31 - *x_e ); +#ifdef BASOP_NOGLOB *nf_seed = add_o( *nf_seed, (Word16) abs( tmp32 ) * i * 2, &Overflow ); +#else + *nf_seed = add( *nf_seed, (Word16) abs( tmp32 ) * i * 2 ); +#endif } } ELSE /* TCX-only: context based arithmetic coder */