[xiph-commits] r12053 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Tue Nov 7 01:41:04 PST 2006
Author: jm
Date: 2006-11-07 01:41:02 -0800 (Tue, 07 Nov 2006)
New Revision: 12053
Modified:
trunk/speex/libspeex/mdf.c
Log:
mdf.c now has zero float operations left (again)
Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c 2006-11-07 08:34:10 UTC (rev 12052)
+++ trunk/speex/libspeex/mdf.c 2006-11-07 09:41:02 UTC (rev 12053)
@@ -343,7 +343,7 @@
{
spx_word32_t sum = 0;
/* Ratio of ~10 between adaptation rate of first and last block */
- spx_word16_t decay = QCONST16(exp(-2.4/M),15);
+ spx_word16_t decay = SHR32(spx_exp(NEG16(DIV32_16(QCONST16(2.4,11),M))),1);
st->prop[0] = QCONST16(.7, 15);
sum = EXTEND32(st->prop[0]);
for (i=1;i<M;i++)
More information about the commits
mailing list