[xiph-commits] r10554 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Tue Dec 6 14:57:22 PST 2005
Author: jm
Date: 2005-12-06 14:57:20 -0800 (Tue, 06 Dec 2005)
New Revision: 10554
Modified:
trunk/speex/libspeex/fixed_debug.h
Log:
defined QCONST
Modified: trunk/speex/libspeex/fixed_debug.h
===================================================================
--- trunk/speex/libspeex/fixed_debug.h 2005-12-06 21:53:44 UTC (rev 10553)
+++ trunk/speex/libspeex/fixed_debug.h 2005-12-06 22:57:20 UTC (rev 10554)
@@ -40,6 +40,9 @@
extern long long spx_mips;
#define MIPS_INC spx_mips++,
+#define QCONST16(x,bits) ((spx_word16_t)((x)*(1<<(bits))+(1<<((bits)-1))))
+#define QCONST32(x,bits) ((spx_word32_t)((x)*(1<<(bits))+(1<<((bits)-1))))
+
#define VERIFY_SHORT(x) ((x)<=32767&&(x)>=-32768)
#define VERIFY_INT(x) ((x)<=2147483647LL&&(x)>=-2147483648LL)
More information about the commits
mailing list