Main Page   Compound List   File List   Compound Members   File Members  

stack_alloc.h File Reference

Go to the source code of this file.

Defines

#define ALIGN(stack, size)   ((stack) += ((size) - (int)(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))))


Define Documentation

#define ALIGN (  stack,
size    )     ((stack) += ((size) - (int)(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))))
 


Generated on Wed Feb 11 13:48:37 2004 for speex by doxygen1.2.15