Loading lib_enc/ari_hm_enc.c +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
lib_enc/ari_hm_enc.c +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading