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

jm at svn.xiph.org jm at svn.xiph.org
Sun May 7 09:21:49 PDT 2006


Author: jm
Date: 2006-05-07 09:21:46 -0700 (Sun, 07 May 2006)
New Revision: 11361

Modified:
   trunk/speex/libspeex/arch.h
   trunk/speex/libspeex/fixed_debug.h
Log:
Oops! Defined MAC16_16_P13 for float and fixed-point debug


Modified: trunk/speex/libspeex/arch.h
===================================================================
--- trunk/speex/libspeex/arch.h	2006-05-07 16:10:39 UTC (rev 11360)
+++ trunk/speex/libspeex/arch.h	2006-05-07 16:21:46 UTC (rev 11361)
@@ -161,6 +161,7 @@
 
 #define MAC16_16_Q11(c,a,b)     ((c)+(a)*(b))
 #define MAC16_16_Q13(c,a,b)     ((c)+(a)*(b))
+#define MAC16_16_P13(c,a,b)     ((c)+(a)*(b))
 #define MULT16_16_Q11_32(a,b)     ((a)*(b))
 #define MULT16_16_Q13(a,b)     ((a)*(b))
 #define MULT16_16_Q14(a,b)     ((a)*(b))

Modified: trunk/speex/libspeex/fixed_debug.h
===================================================================
--- trunk/speex/libspeex/fixed_debug.h	2006-05-07 16:10:39 UTC (rev 11360)
+++ trunk/speex/libspeex/fixed_debug.h	2006-05-07 16:21:46 UTC (rev 11361)
@@ -252,7 +252,9 @@
 #define MAC16_16(c,a,b)     (spx_mips--,ADD32((c),MULT16_16((a),(b))))
 #define MAC16_16_Q11(c,a,b)     (ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),11))))
 #define MAC16_16_Q13(c,a,b)     (ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),13))))
+#define MAC16_16_P13(c,a,b)     (ADD32((c),SHR(ADD32(4096,MULT16_16((a),(b))),13)))
 
+
 static inline int MULT16_32_QX(int a, long long b, int Q)
 {
    long long res;



More information about the commits mailing list