Commit 7f6d5fbb authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_506

parent 35930bfa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -153,7 +153,6 @@



#define FIX_506                                         /* FhG: Compiler warnings */
#define FIX_511_OPTIMIZE_PARAMBIN_GAIN_FETCH            /* Nokia: Issue 511, significant optimization of parametric binauralizer gain fetching. */
#define FIX_122_MC_DECODER_COMPLEXITY                   /* FhG: Issue 122, significant decrease of worst case MC decoder complexity */
#define FIX_531_BWS_ISM_BFI                             /* VA: issue 531: fix MemorySanitizer: use-of-uninitialized-value in ISM2 rate switching with frame errors */
+0 −9
Original line number Diff line number Diff line
@@ -388,9 +388,6 @@ static void spectrum_mod_dct(
    float inv_noise[MBANDS_GN_LD];
    float *pt_gbin, alpha, tmpN;
    int16_t i;
#ifndef FIX_506
    int16_t cnt;
#endif
    float *pt;
    float tmp, shift;
    const float *pt2;
@@ -478,9 +475,6 @@ static void spectrum_mod_dct(

            tmpN = slope * inv_noise[i];
            tmp = 0.0f;
#ifndef FIX_506
            cnt = 0;
#endif
            while ( freq <= mfreq_loc_LD[i] )
            {
                gain = 1.0f;
@@ -507,9 +501,6 @@ static void spectrum_mod_dct(

                *pt_gbin = gain + alpha * *pt_gbin;
                *pt++ *= *pt_gbin;
#ifndef FIX_506
                cnt++;
#endif
                freq += BIN_16kdct;
                pt_gbin++;
            }
+0 −9
Original line number Diff line number Diff line
@@ -1370,14 +1370,8 @@ static void spt_shorten_domain_set_dec(
)
{
    int16_t j, k;
#ifndef FIX_506
    int16_t kpos;
#endif
    int16_t spt_shorten_flag[SPT_SHORTEN_SBNUM];

#ifndef FIX_506
    kpos = 0;
#endif
    j = 0;
    for ( k = bands - SPT_SHORTEN_SBNUM; k < bands; k++ )
    {
@@ -1394,9 +1388,6 @@ static void spt_shorten_domain_set_dec(
            }
        }

#ifndef FIX_506
        kpos++;
#endif
        j++;
    }

+0 −12
Original line number Diff line number Diff line
@@ -96,26 +96,14 @@ void mat2svdMat(
)
{
    int16_t i, j;
#ifndef FIX_506
    int16_t posCounter;
#endif

    if ( transpose )
    {
#ifndef FIX_506
        posCounter = 0;
#endif
        for ( i = 0; i < mCols; i++ )
        {
            for ( j = 0; j < nRows; j++ )
            {
                svdMat[i][j] = mat[j + nRows * i];
#ifndef FIX_506
                if ( mat[j + nRows * i] > 0.0f )
                {
                    posCounter++;
                }
#endif
            }

            set_zero( &svdMat[i][mCols], MAX_OUTPUT_CHANNELS - nRows );
+0 −9
Original line number Diff line number Diff line
@@ -130,9 +130,6 @@ static void DecodeSWBSubbands(
    float ss_min = 1.0f, g, be_tonal[SWB_HAR_RAN1], xSynth_har[L_FRAME32k];
    GainItem pk_sf[(NB_SWB_SUBBANDS) *8];
    int16_t lagIndices_real[NB_SWB_SUBBANDS];
#ifndef FIX_506
    int16_t cnt;
#endif
    int16_t pul_res[NB_SWB_SUBBANDS], imin;
    int16_t har_freq_est1 = 0;
    int16_t har_freq_est2 = 0;
@@ -205,18 +202,12 @@ static void DecodeSWBSubbands(
        {
            lagGains[k] *= 0.9f;
        }
#ifndef FIX_506
        cnt = 0;
#endif
        for ( k = 0; k < NB_SWB_SUBBANDS; k++ )
        {
            th_g[k] = 0.0f;
            if ( p2a_flags[BANDS - NB_SWB_SUBBANDS + k] == 0 )
            {
                th_g[k] = lagGains[k] * ss_min;
#ifndef FIX_506
                cnt++;
#endif
            }
        }
        /* Construct spectrum */
Loading