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

jm at svn.xiph.org jm at svn.xiph.org
Sun Dec 18 04:13:01 PST 2005


Author: jm
Date: 2005-12-18 04:12:58 -0800 (Sun, 18 Dec 2005)
New Revision: 10633

Modified:
   trunk/speex/libspeex/mdf.c
Log:
fixed the float version


Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c	2005-12-18 12:07:57 UTC (rev 10632)
+++ trunk/speex/libspeex/mdf.c	2005-12-18 12:12:58 UTC (rev 10633)
@@ -487,8 +487,13 @@
       /* Temporary adaption rate if filter is not adapted correctly */
 
       tmp32 = MULT16_32_Q15(QCONST16(.15f, 15), Sxx);
+#ifdef FIXED_POINT
       if (Sxx > SHR32(See,2))
          Sxx = SHR32(See,2);
+#else
+      if (Sxx > .25See)
+         Sxx = .25*See;      
+#endif
       adapt_rate = FLOAT_EXTRACT16(FLOAT_SHL(FLOAT_DIV32(MULT16_32_Q15(M_1,Sxx), See),15));
       
       for (i=0;i<=st->frame_size;i++)



More information about the commits mailing list