Commit 2cc44d9a authored by Fabian Bauer's avatar Fabian Bauer
Browse files

replaced overflow basops in cldfb_evs_fx.c

parent 1361488c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1240,9 +1240,11 @@ void GetEnergyCldfb( Word32 *energyLookahead, /*!< o: Q(*sf_energyLookahead)
    Word32 energyValues[CLDFB_NO_COL_MAX][CLDFB_NO_CHANNELS_MAX];
    Word16 energyValuesSumE[CLDFB_NO_CHANNELS_MAX];
    // Word16 freqTable[2] = {20, 40};
#ifndef ISSUE_1836_replace_overflow_libcom
#ifdef BASOP_NOGLOB_DECLARE_LOCAL
    Flag Overflow = 0;
    move32();
#endif
#endif

    FOR( k = 0; k < numberCols; k++ )
@@ -1329,8 +1331,8 @@ void GetEnergyCldfb( Word32 *energyLookahead, /*!< o: Q(*sf_energyLookahead)
        {
            FOR( j = 20; j < numberBandsM; j++ )
            {
#ifdef ISSUE_1799_replace_L_shr_o
                nrg = L_add_o( nrg, L_shr_sat( energyValues[k][j], s ), &Overflow );
#ifdef ISSUE_1836_replace_overflow_libcom
                nrg = L_add_sat( nrg, L_shr_sat( energyValues[k][j], s ) );
#else
                nrg = L_add_o( nrg, L_shr_o( energyValues[k][j], s, &Overflow ), &Overflow );
#endif
@@ -1356,8 +1358,8 @@ void GetEnergyCldfb( Word32 *energyLookahead, /*!< o: Q(*sf_energyLookahead)
        {
            FOR( j = 20; j < numberBandsM; j++ )
            {
#ifdef ISSUE_1799_replace_L_shr_o
                nrg = L_add_o( nrg, L_shr_sat( energyValues[k][j], s ), &Overflow );
#ifdef ISSUE_1836_replace_overflow_libcom
                nrg = L_add_sat( nrg, L_shr_sat( energyValues[k][j], s ) );
#else
                nrg = L_add_o( nrg, L_shr_o( energyValues[k][j], s, &Overflow ), &Overflow );
#endif