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

jm at svn.xiph.org jm at svn.xiph.org
Sat Dec 17 01:12:14 PST 2005


Author: jm
Date: 2005-12-17 01:12:10 -0800 (Sat, 17 Dec 2005)
New Revision: 10612

Modified:
   trunk/speex/libspeex/mdf.c
   trunk/speex/libspeex/pseudofloat.h
Log:
minor stuff


Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c	2005-12-17 02:45:57 UTC (rev 10611)
+++ trunk/speex/libspeex/mdf.c	2005-12-17 09:12:10 UTC (rev 10612)
@@ -431,6 +431,8 @@
    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));
    /* We don't really hope to get better than 33 dB attenuation anyway */
+   if (FLOAT_LT(st->Pyy, FLOAT_ONE))
+      st->Pyy = FLOAT_ONE;
    if (FLOAT_LT(st->Pey, FLOAT_MULT(MIN_LEAK,st->Pyy)))
       st->Pey = FLOAT_MULT(MIN_LEAK,st->Pyy);
    if (FLOAT_GT(st->Pey, st->Pyy))

Modified: trunk/speex/libspeex/pseudofloat.h
===================================================================
--- trunk/speex/libspeex/pseudofloat.h	2005-12-17 02:45:57 UTC (rev 10611)
+++ trunk/speex/libspeex/pseudofloat.h	2005-12-17 09:12:10 UTC (rev 10612)
@@ -291,10 +291,13 @@
 #define FLOAT_MUL32(a,b) ((a)*(b))
 #define FLOAT_DIV32(a,b) ((a)/(b))
 #define FLOAT_ADD(a,b) ((a)+(b))
+#define FLOAT_SUB(a,b) ((a)-(b))
 #define REALFLOAT(x) (x)
 #define FLOAT_DIV32_FLOAT(a,b) ((a)/(b))
 #define FLOAT_MUL32U(a,b) ((a)*(b))
 #define FLOAT_SHL(a,b) (a)
+#define FLOAT_LT(a,b) ((a)<(b))
+#define FLOAT_GT(a,b) ((a)>(b))
 
 #endif
 



More information about the commits mailing list