Loading lib_enc/lp_exc_e_fx.c +1 −2 Original line number Diff line number Diff line Loading @@ -525,8 +525,7 @@ Word16 corr_xy1_fx( /* o : pitch gain (0..GAIN_PIT_MAX) gain = shl_sat( gain, i ); /* saturation can occur here */ /* Theres only to solve 32767 = x * 2 ^ y, if y is an integer : x = 32767 and y = 0 y == 0 is possible, x == 32767 is impossible Theres only one 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: x == 32767 or y == 0 */ Overflow = ( gain == MAX_16 && i != 0 ) ? 1 : 0; Loading Loading
lib_enc/lp_exc_e_fx.c +1 −2 Original line number Diff line number Diff line Loading @@ -525,8 +525,7 @@ Word16 corr_xy1_fx( /* o : pitch gain (0..GAIN_PIT_MAX) gain = shl_sat( gain, i ); /* saturation can occur here */ /* Theres only to solve 32767 = x * 2 ^ y, if y is an integer : x = 32767 and y = 0 y == 0 is possible, x == 32767 is impossible Theres only one 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: x == 32767 or y == 0 */ Overflow = ( gain == MAX_16 && i != 0 ) ? 1 : 0; Loading