Commit f7fa73f0 authored by sagnowski's avatar sagnowski
Browse files

Remove usage of global flags

parent f909f222
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -123,6 +123,10 @@ Word32 pow_10(Word32 x , Word16 *Q)
  Word16 n1,i;
  Word16 count = 0;

#ifdef BASOP_NOGLOB
  Flag Overflow;
#endif /* BASOP_NOGLOB */

  move16();;

  xl=extract_l(x);
+4 −0
Original line number Diff line number Diff line
@@ -1357,6 +1357,10 @@ Word32 norm_llQ31( /* o : normalized result Q31 */
    Word16 i;
    Word32 L_tmp;

#ifdef BASOP_NOGLOB
    Flag Carry;
#endif /* BASOP_NOGLOB */

    /* Move MSBit of L_sum into L_c */
    Carry = 0;
    L_tmp = L_add_c(L_sum, L_sum);    /* L_tmp = L_sum << 1         */
+3 −0
Original line number Diff line number Diff line
@@ -61,6 +61,9 @@ void cb_shape_fx(
    Word16 i;
    Word32 L_tmp;
    Word16 tilt, mu;
#ifdef BASOP_NOGLOB
    Flag Overflow;
#endif /* BASOP_NOGLOB */
    tmp = 0;

    move16();
+4 −0
Original line number Diff line number Diff line
@@ -36,6 +36,10 @@ Word16 env_stability_fx( /* in Q15 */
    Word32 L_tmp, L_env_delta;
    Word16 inv_nb_sfm;

#ifdef BASOP_NOGLOB
    Flag Overflow;
#endif /* BASOP_NOGLOB */

    IF (core_switching_flag)
    {
        FOR (i = 0; i < nb_sfm; i++)
+4 −0
Original line number Diff line number Diff line
@@ -59,6 +59,10 @@ void mdct_spectrum_denorm_fx(

    Word16 cond_fx;

#ifdef BASOP_NOGLOB
    Flag Overflow;
#endif /* BASOP_NOGLOB */

    exp_safe = 4; /* safe bit for overflow */

    FOR (k = 0; k < bands; k++)
Loading