i386 vsyscall support (vdso-provided sysenter/syscall instruction based)
[musl] / arch / i386 / bits / stdarg.h
1 #define __VA_ALIGNED_SIZE(x) ((sizeof(x) + sizeof(int) - 1) & ~(sizeof(int) - 1))
2
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))
6
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)) )