Loading lib_com/stab_est_fx.c +5 −5 Original line number Diff line number Diff line Loading @@ -46,9 +46,6 @@ Word16 stab_est_fx( Word16 mean_diff; Word16 dev; Word32 L_tmp; #ifdef BASOP_NOGLOB_DECLARE_LOCAL Flag Overflow = 0; #endif /*------------------------------------------------------------------------* * Find mean of the past MAX_LT frames energy variation Loading Loading @@ -96,8 +93,11 @@ Word16 stab_est_fx( exp1 = norm_l(L_tmp); L_tmp = L_shl(L_tmp, exp1); #ifdef BASOP_NOGLOB tmp16 = round_fx_sat(L_tmp); #else tmp16 = round_fx(L_tmp); #endif exp2 = sub(31, exp1); L_tmp = Isqrt_lc(L_tmp, &exp2); L_tmp = Mpy_32_16_1(L_tmp, tmp16); /* we now have sqrt(L_corr) Q24 (8+16)*/ Loading @@ -105,7 +105,7 @@ Word16 stab_est_fx( L_tmp = L_shl(L_tmp, exp2); /* Q8 + Q16*/ #ifdef BASOP_NOGLOB dev = extract_h(L_shl_o(L_tmp, 3, &Overflow)); /* Q(24+3-16) -> Q11 */ dev = extract_h(L_shl_sat(L_tmp, 3)); /* Q(24+3-16) -> Q11 */ #else /* BASOP_NOGLOB */ dev = extract_h(L_shl(L_tmp, 3)); /* Q(24+3-16) -> Q11 */ #endif Loading Loading
lib_com/stab_est_fx.c +5 −5 Original line number Diff line number Diff line Loading @@ -46,9 +46,6 @@ Word16 stab_est_fx( Word16 mean_diff; Word16 dev; Word32 L_tmp; #ifdef BASOP_NOGLOB_DECLARE_LOCAL Flag Overflow = 0; #endif /*------------------------------------------------------------------------* * Find mean of the past MAX_LT frames energy variation Loading Loading @@ -96,8 +93,11 @@ Word16 stab_est_fx( exp1 = norm_l(L_tmp); L_tmp = L_shl(L_tmp, exp1); #ifdef BASOP_NOGLOB tmp16 = round_fx_sat(L_tmp); #else tmp16 = round_fx(L_tmp); #endif exp2 = sub(31, exp1); L_tmp = Isqrt_lc(L_tmp, &exp2); L_tmp = Mpy_32_16_1(L_tmp, tmp16); /* we now have sqrt(L_corr) Q24 (8+16)*/ Loading @@ -105,7 +105,7 @@ Word16 stab_est_fx( L_tmp = L_shl(L_tmp, exp2); /* Q8 + Q16*/ #ifdef BASOP_NOGLOB dev = extract_h(L_shl_o(L_tmp, 3, &Overflow)); /* Q(24+3-16) -> Q11 */ dev = extract_h(L_shl_sat(L_tmp, 3)); /* Q(24+3-16) -> Q11 */ #else /* BASOP_NOGLOB */ dev = extract_h(L_shl(L_tmp, 3)); /* Q(24+3-16) -> Q11 */ #endif Loading