[xiph-commits] r10778 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Tue Jan 31 16:04:06 PST 2006


Author: jm
Date: 2006-01-31 16:04:04 -0800 (Tue, 31 Jan 2006)
New Revision: 10778

Modified:
   trunk/speex/libspeex/mdf.c
Log:
Play nice with non-C99 compilers


Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c	2006-02-01 00:01:52 UTC (rev 10777)
+++ trunk/speex/libspeex/mdf.c	2006-02-01 00:04:04 UTC (rev 10778)
@@ -389,7 +389,7 @@
    spx_word16_t leak_estimate;
    spx_word16_t ss, ss_1;
    spx_float_t Pey = FLOAT_ONE, Pyy=FLOAT_ONE;
-   spx_float_t alpha;
+   spx_float_t alpha, alpha_1;
    spx_word16_t RER;
    spx_word32_t tmp32;
    spx_word16_t M_1;
@@ -524,7 +524,7 @@
    if (tmp32 > MULT16_32_Q15(st->beta_max,See))
       tmp32 = MULT16_32_Q15(st->beta_max,See);
    alpha = FLOAT_DIV32(tmp32, See);
-   spx_float_t alpha_1 = FLOAT_SUB(FLOAT_ONE, alpha);
+   alpha_1 = FLOAT_SUB(FLOAT_ONE, alpha);
    /* Update correlations (recursive average) */
    st->Pey = FLOAT_ADD(FLOAT_MULT(alpha_1,st->Pey) , FLOAT_MULT(alpha,Pey));
    st->Pyy = FLOAT_ADD(FLOAT_MULT(alpha_1,st->Pyy) , FLOAT_MULT(alpha,Pyy));



More information about the commits mailing list