Commit 78c9cc95 authored by sagnowski's avatar sagnowski
Browse files

Ensure Overflow and Carry flags are always initialized

parent 035ffc04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ Word32 pow_10(Word32 x , Word16 *Q)
  Word16 n1,i;
  Word16 count = 0;
#ifdef BASOP_NOGLOB
  Flag Overflow;
  Flag Overflow = 0;
#endif /* BASOP_NOGLOB */

  move16();;
+2 −2
Original line number Diff line number Diff line
@@ -1364,8 +1364,8 @@ Word32 norm_llQ31( /* o : normalized result Q31 */
    Word16 i;
    Word32 L_tmp;
#ifdef BASOP_NOGLOB
    Flag Overflow;
    Flag Carry;
    Flag Overflow = 0;
    Flag Carry = 0;
#endif /* BASOP_NOGLOB */

    /* Move MSBit of L_sum into L_c */
+2 −2
Original line number Diff line number Diff line
@@ -865,8 +865,8 @@ void IGFCommonFuncsCalcSfbEnergyPowerSpec(const Word16 startSfb,
    Word32 L_c;

#ifdef BASOP_NOGLOB
    Flag Overflow;
    Flag Carry;
    Flag Overflow = 0;
    Flag Carry = 0;
#endif /* BASOP_NOGLOB */

    FOR (sfb = startSfb; sfb < stopSfb; sfb++)
+4 −4
Original line number Diff line number Diff line
@@ -14,8 +14,8 @@ Word32 rtpTs_add( Word32 ts1, Word32 ts2 )
{
    Word32 ret;
#ifdef BASOP_NOGLOB
    Flag Overflow;
    Flag Carry;
    Flag Overflow = 0;
    Flag Carry = 0;
#endif /* BASOP_NOGLOB */

    Carry = 0;
@@ -31,8 +31,8 @@ Word32 rtpTs_sub( Word32 ts1, Word32 ts2 )
{
    Word32 ret;
#ifdef BASOP_NOGLOB
    Flag Overflow;
    Flag Carry;
    Flag Overflow = 0;
    Flag Carry = 0;
#endif /* BASOP_NOGLOB */

    BASOP_SATURATE_WARNING_OFF
+2 −2
Original line number Diff line number Diff line
@@ -1556,8 +1556,8 @@ static Word32 CalculateAbsEnergy( /* o : normalized result Q31 */
    Word16 i;
    Word32 L_sum, L_c;
#ifdef BASOP_NOGLOB
    Flag Overflow;
    Flag Carry;
    Flag Overflow = 0;
    Flag Carry = 0;
#endif /* BASOP_NOGLOB */
    /* Clear carry flag and init sum */
    Carry = 0;
Loading