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

jm at svn.xiph.org jm at svn.xiph.org
Thu Nov 30 01:03:12 PST 2006


Author: jm
Date: 2006-11-30 01:03:10 -0800 (Thu, 30 Nov 2006)
New Revision: 12155

Modified:
   trunk/speex/libspeex/fftwrap.c
Log:
use non-buggy version of PSHR for fft normalisation


Modified: trunk/speex/libspeex/fftwrap.c
===================================================================
--- trunk/speex/libspeex/fftwrap.c	2006-11-29 12:52:25 UTC (rev 12154)
+++ trunk/speex/libspeex/fftwrap.c	2006-11-30 09:03:10 UTC (rev 12155)
@@ -64,7 +64,7 @@
    }
    for (i=0;i<len;i++)
    {
-      out[i] = in[i] << shift;
+      out[i] = SHL16(in[i], shift);
    }   
    return shift;
 }
@@ -74,7 +74,7 @@
    int i;
    for (i=0;i<len;i++)
    {
-      out[i] = (in[i] + (1<<(shift-1))) >> shift;
+      out[i] = PSHR16(in[i], shift);
    }
 }
 #endif



More information about the commits mailing list