[xiph-commits] r14241 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Tue Nov 27 14:55:51 PST 2007
Author: jm
Date: 2007-11-27 14:55:50 -0800 (Tue, 27 Nov 2007)
New Revision: 14241
Modified:
trunk/speex/libspeex/stack_alloc.h
Log:
PUSHS no longer used (removed)
Modified: trunk/speex/libspeex/stack_alloc.h
===================================================================
--- trunk/speex/libspeex/stack_alloc.h 2007-11-27 22:12:50 UTC (rev 14240)
+++ trunk/speex/libspeex/stack_alloc.h 2007-11-27 22:55:50 UTC (rev 14241)
@@ -67,15 +67,6 @@
*/
/**
- * @def PUSHS(stack, type)
- *
- * Allocates a struct stack
- *
- * @param stack Stack
- * @param type Struct type
- */
-
-/**
* @def VARDECL(var)
*
* Declare variable on stack
@@ -101,16 +92,12 @@
#define PUSH(stack, size, type) (VALGRIND_MAKE_NOACCESS(stack, 1000),ALIGN((stack),sizeof(type)),VALGRIND_MAKE_WRITABLE(stack, ((size)*sizeof(type))),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type))))
-#define PUSHS(stack, type) (VALGRIND_MAKE_NOACCESS(stack, 1000),ALIGN((stack),sizeof(long)),VALGRIND_MAKE_WRITABLE(stack, (sizeof(type))),(stack)+=(sizeof(type)),(type*)((stack)-(sizeof(type))))
-
#else
#define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1))
#define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)),(stack)+=((size)*sizeof(type)),(type*)((stack)-((size)*sizeof(type))))
-#define PUSHS(stack, type) (ALIGN((stack),sizeof(long)),(stack)+=(sizeof(type)),(type*)((stack)-(sizeof(type))))
-
#endif
#if defined(VAR_ARRAYS)
More information about the commits
mailing list