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

jm at svn.xiph.org jm at svn.xiph.org
Wed Feb 21 18:55:24 PST 2007


Author: jm
Date: 2007-02-21 18:55:22 -0800 (Wed, 21 Feb 2007)
New Revision: 12508

Modified:
   trunk/speex/libspeex/preprocess.c
Log:
fixed-point preprocessor fix (conj_window)


Modified: trunk/speex/libspeex/preprocess.c
===================================================================
--- trunk/speex/libspeex/preprocess.c	2007-02-22 01:28:15 UTC (rev 12507)
+++ trunk/speex/libspeex/preprocess.c	2007-02-22 02:55:22 UTC (rev 12508)
@@ -255,7 +255,11 @@
    for (i=0;i<len;i++)
    {
       spx_word16_t tmp;
+#ifdef FIXED_POINT
+      spx_word16_t x = DIV32_16(MULT16_16(32767,i),len);
+#else      
       spx_word16_t x = DIV32_16(MULT16_16(QCONST16(4.f,13),i),len);
+#endif
       int inv=0;
       if (x<QCONST16(1.f,13))
       {



More information about the commits mailing list