Commit b8a93607 authored by vaillancour's avatar vaillancour
Browse files

more staturation fixes based on a different saturation level

parent 9e8e03c8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2410,7 +2410,11 @@ void time_reduce_pre_echo_fx(
			L_tmp = L_sub(L_tmp1, Ltmp_ener); /*Q(30-exp) */
			L_tmp = Mult_32_16(L_tmp, tmpi); /*Q(30-exp) */
			L_tmp = L_add(Ltmp_ener, L_tmp); /*Q(30-exp) */
#ifdef BASOP_NOGLOB
            tmp = round_fx_sat( L_shl_sat( Mult_32_16( L_tmp, *pit ), add( 1, exp ) ) ); /*Q0 */
#else
            tmp = round_fx( L_shl( Mult_32_16( L_tmp, *pit ), add( 1, exp ) ) ); /*Q0 */
#endif
			*pit++ = tmp;
		}
	}
+5 −1
Original line number Diff line number Diff line
@@ -954,7 +954,11 @@ static void shb_CNG_decod_fx(
        move32();
    }
    fra = L_Extract_lc(L_tmp, &exp);
#ifdef BASOP_NOGLOB
    L_tmp = L_shl_sat( Pow2( exp, fra ), 5 ); /*Q5 */
#else
    L_tmp = L_shl( Pow2( exp, fra ), 5 ); /*Q5 */
#endif
    L_tmp = L_shr(L_tmp, 10);
    if( L_tmp == 0 )
    {