Commit c6a8959c authored by vaillancour's avatar vaillancour
Browse files

more saturation fixes

parent 47e007c7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2993,8 +2993,11 @@ void hq_generic_decoding_fx(
		tmp1_fx = extract_h(L_shl(L_tmp1, exp1));
		tmp2_fx = extract_h(L_shl(L_tmp2, exp2));
		tmp3_fx = div_s(tmp2_fx, tmp1_fx);/*15 + exp2 + 15 - (exp1 + 15) */
#ifdef BASOP_NOGLOB
        tmp3_fx = shr_sat( tmp3_fx, add( 5, sub( exp2, exp1 ) ) ); /*10 */
#else
        tmp3_fx = shr( tmp3_fx, add( 5, sub( exp2, exp1 ) ) ); /*10 */

#endif
		if (LT_16(tmp3_fx, 307))
		{
			tmp3_fx = 307;