Loading lib_enc/enc_acelp_fx.c +0 −9 Original line number Diff line number Diff line Loading @@ -565,15 +565,6 @@ Word16 E_ACELP_xy1_corr_fx( Word16 xn[] /*Q15-exp_xn*/, Word16 y1[] /*Q15-exp_xn BASOP_SATURATE_WARNING_OFF_EVS #ifdef ISSUE_1796_replace_shl_o gain = shl_sat( gain, i ); /* saturation can occur here */ /* There's only 1 integer x to solve 32767 = x * 2^y, if y is an integer : x= 32767 and y = 0 . * so we can assume a saturated overflow, if gain == 32767 and one of the two conditions is false: y == 0 or x == 32767 . */ test(); IF( gain == MAX_16 && i != 0 ) { Overflow = 1; } #else gain = shl_o( gain, i, &Overflow ); /* saturation can occur here */ #endif Loading Loading
lib_enc/enc_acelp_fx.c +0 −9 Original line number Diff line number Diff line Loading @@ -565,15 +565,6 @@ Word16 E_ACELP_xy1_corr_fx( Word16 xn[] /*Q15-exp_xn*/, Word16 y1[] /*Q15-exp_xn BASOP_SATURATE_WARNING_OFF_EVS #ifdef ISSUE_1796_replace_shl_o gain = shl_sat( gain, i ); /* saturation can occur here */ /* There's only 1 integer x to solve 32767 = x * 2^y, if y is an integer : x= 32767 and y = 0 . * so we can assume a saturated overflow, if gain == 32767 and one of the two conditions is false: y == 0 or x == 32767 . */ test(); IF( gain == MAX_16 && i != 0 ) { Overflow = 1; } #else gain = shl_o( gain, i, &Overflow ); /* saturation can occur here */ #endif Loading