From 431e46469c0804f6f01cc4f5c90ab1daac7d3054 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Mon, 21 Apr 2008 13:54:41 +1000 Subject: [PATCH] Making stack push a tiny bit clearer to the compiler -- don't think it really has an effect though. --- libcelt/stack_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcelt/stack_alloc.h b/libcelt/stack_alloc.h index 1ce7798e..5be97273 100644 --- a/libcelt/stack_alloc.h +++ b/libcelt/stack_alloc.h @@ -116,7 +116,7 @@ /* FIXME: Only align up to a certain size (not for structs) */ #define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) -#define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)/sizeof(char)),(stack)+=((size)*sizeof(type)/sizeof(char)),(type*)((stack)-((size)*sizeof(type)/sizeof(char)))) +#define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)/sizeof(char)),(stack)+=(size)*(sizeof(type)/sizeof(char)),(type*)((stack)-(size)*(sizeof(type)/sizeof(char)))) #define RESTORE_STACK (global_stack = _saved_stack) #endif