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

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Tue Feb 8 19:47:58 PST 2005


Author: jm
Date: 2005-02-08 19:47:57 -0800 (Tue, 08 Feb 2005)
New Revision: 8880

Modified:
   trunk/speex/libspeex/ltp.c
Log:
oops... ANSI C fix


Modified: trunk/speex/libspeex/ltp.c
===================================================================
--- trunk/speex/libspeex/ltp.c	2005-02-09 03:35:20 UTC (rev 8879)
+++ trunk/speex/libspeex/ltp.c	2005-02-09 03:47:57 UTC (rev 8880)
@@ -469,10 +469,11 @@
    err=0;
    for (i=0;i<nsf;i++)
    {
+      spx_word16_t perr2;
       spx_sig_t tmp = SHL((MULT16_32_Q15(SHL(gain[0],7),x[2][i])+MULT16_32_Q15(SHL(gain[1],7),x[1][i])+MULT16_32_Q15(SHL(gain[2],7),x[0][i])),2);
       spx_sig_t perr=target[i]-tmp;
       new_target[i] = target[i] - tmp;
-      spx_word16_t perr2 = PSHR(perr,15);
+      perr2 = PSHR(perr,15);
       err = ADD64(err,MULT16_16(perr2,perr2));
       
    }



More information about the commits mailing list