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

jm at svn.xiph.org jm at svn.xiph.org
Mon Jul 24 15:32:11 PDT 2006


Author: jm
Date: 2006-07-24 15:32:09 -0700 (Mon, 24 Jul 2006)
New Revision: 11717

Modified:
   trunk/speex/libspeex/lsp.c
Log:
16-bit clean shift in lsp_to_lpc()


Modified: trunk/speex/libspeex/lsp.c
===================================================================
--- trunk/speex/libspeex/lsp.c	2006-07-24 18:44:51 UTC (rev 11716)
+++ trunk/speex/libspeex/lsp.c	2006-07-24 22:32:09 UTC (rev 11717)
@@ -458,7 +458,7 @@
 
     #define QIMP  21   /* scaling for impulse */
 
-    xin = 1<<(QIMP-1); /* 0.5 in QIMP format */
+    xin = SHL32(EXTEND32(1), (QIMP-1)); /* 0.5 in QIMP format */
    
     /* first col and last non-zero values of each row are trivial */
     



More information about the commits mailing list