Commit 769223cd authored by thomas dettbarn's avatar thomas dettbarn
Browse files

in linv_enc_ivas_stereo_dmx_evs_fx.c: div4 and div8 were replaced by shr2 and shr3

parent 17d90701
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -49,7 +49,9 @@
 *-----------------------------------------------------------------------*/

#define STEREO_DMX_EVS_FIND_POC_PEAK_TAU  4
#define STEREO_DMX_EVS_FIND_POC_PEAK_TAU_LOG2 2
#define STEREO_DMX_EVS_FIND_POC_PEAK_TAU2 8
#define STEREO_DMX_EVS_FIND_POC_PEAK_TAU2_LOG2 3

#define STEREO_DMX_EVS_POC_SMOOTH_Q30            1342177280
#define STEREO_DMX_EVS_POC_FORGETTING_Q31        1675037245
@@ -1398,8 +1400,8 @@ static Word32 find_poc_peak_fx(
        move16();

        /*compute peak_range*/
        tmp1 = idiv1616( hPOC->shift_limit, STEREO_DMX_EVS_FIND_POC_PEAK_TAU );
        peak_range = idiv1616( add( extract_l( abs_s( itd_cand[n] ) ), tmp1 ), STEREO_DMX_EVS_FIND_POC_PEAK_TAU2 ); // Q0
        tmp1 = shr( hPOC->shift_limit, STEREO_DMX_EVS_FIND_POC_PEAK_TAU_LOG2 );
        peak_range = shr( add( extract_l( abs_s( itd_cand[n] ) ), tmp1 ), STEREO_DMX_EVS_FIND_POC_PEAK_TAU2_LOG2 ); // Q0

        FOR( i = 1; i <= peak_range; i++ )
        {