Commit 6c5311a0 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

lib_enc/enc_acelp_fx.c : delete manual a-posteriori overflow-detection in...

lib_enc/enc_acelp_fx.c : delete manual a-posteriori overflow-detection in corr_xy1_fx() : overflow flag is not read afterwards
parent 56fe575d
Loading
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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