remove largish unused field from pthread structure
[musl.git] / arch / i386 / bits / stdarg.h
blob6b1830d210cfb78ce307bc0a5d0e685f22a3d09c
1 #define __VA_ALIGNED_SIZE(x) ((sizeof(x) + sizeof(int) - 1) & ~(sizeof(int) - 1))
3 #define va_start(ap, last) ((ap) = (void *)(((char *)&(last)) + __VA_ALIGNED_SIZE(last)))
4 #define va_end(ap) ((void)0)
5 #define va_copy(dest, src) ((dest) = (src))
7 #define va_arg(ap, type) \
8 ( ((ap) = (va_list)((char *)(ap) + __VA_ALIGNED_SIZE(type))), \
9 *(type *)(void *)((char *)(ap) - __VA_ALIGNED_SIZE(type)) )