Commit 3f04c0dc authored by vaillancour's avatar vaillancour
Browse files

Fix foR -dtx -max_band bw_switch_NB_WB_SWB_FB.txt bw_59_1280_evs_amrwb.bin 48 stv48c.INP

parent 94c831ce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -428,10 +428,11 @@ Word16 SearchPeriodicityIndex(
        tmp32 = L_mult0(Score, NumToConsider); /* -> 16Q15 */
        tmp = sub(norm_l(tmp32), 1);
        tmp2 = norm_l(AbsTotal);
        tmp3 = div_s( round_fx(L_shl(tmp32, tmp)), round_fx(L_shl(AbsTotal, tmp2)) );
#ifdef BASOP_NOGLOB
        tmp3 = div_s(round_fx_o(L_shl_o(tmp32, tmp, &Overflow), &Overflow), round_fx_o(L_shl_o(AbsTotal, tmp2, &Overflow), &Overflow));
        * RelativeScore = shr_o(tmp3, add(sub(tmp, tmp2), 2), &Overflow); /* -> 2Q13 */           move16();
#else
        tmp3 = div_s(round_fx(L_shl(tmp32, tmp)), round_fx(L_shl(AbsTotal, tmp2)));
        BASOP_SATURATE_WARNING_OFF
        *RelativeScore = shr(tmp3, add(sub(tmp, tmp2), 2)); /* -> 2Q13 */           move16();
        BASOP_SATURATE_WARNING_ON