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

jm at svn.xiph.org jm at svn.xiph.org
Fri Apr 21 06:06:06 PDT 2006


Author: jm
Date: 2006-04-21 06:06:02 -0700 (Fri, 21 Apr 2006)
New Revision: 11200

Modified:
   trunk/speex/libspeex/nb_celp.c
Log:
16-bit cleanliness


Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c	2006-04-21 12:37:01 UTC (rev 11199)
+++ trunk/speex/libspeex/nb_celp.c	2006-04-21 13:06:02 UTC (rev 11200)
@@ -748,7 +748,7 @@
          for (i=0;i<st->lpcSize;i+=2)
          {
             /*pi_g += -st->interp_qlpc[i] +  st->interp_qlpc[i+1];*/
-            pi_g = ADD32(pi_g, SUB32(st->interp_qlpc[i+1],st->interp_qlpc[i]));
+            pi_g = ADD32(pi_g, SUB32(EXTEND32(st->interp_qlpc[i+1]),EXTEND32(st->interp_qlpc[i])));
          }
          st->pi_gain[sub] = pi_g;
       }
@@ -1779,7 +1779,7 @@
          for (i=0;i<st->lpcSize;i+=2)
          {
             /*pi_g += -st->interp_qlpc[i] +  st->interp_qlpc[i+1];*/
-            pi_g = ADD32(pi_g, SUB32(st->interp_qlpc[i+1],st->interp_qlpc[i]));
+            pi_g = ADD32(pi_g, SUB32(EXTEND32(st->interp_qlpc[i+1]),EXTEND32(st->interp_qlpc[i])));
          }
          st->pi_gain[sub] = pi_g;
       }



More information about the commits mailing list