Loading...
Searching...
No Matches
Go to the documentation of this file.
6#define va_list __builtin_va_list
7#define va_start __builtin_va_start
8#define va_arg __builtin_va_arg
9#define va_end __builtin_va_end
17#define _VA_FP_SAVE_AREA 0x10
18#define _VA_ALIGN(p, a) (((unsigned int) (((char*) p) + ((a) > 4 ? (a) : 4) - 1)) & -((a) > 4 ? (a) : 4))
19#define va_start(vp, parmN) (vp = ((va_list) & parmN + sizeof(parmN)))
21#define __va_stack_arg(list, mode) \
22 (((list) = (char*) _VA_ALIGN(list, __builtin_alignof(mode)) + _VA_ALIGN(sizeof(mode), 4)), \
23 (((char*) list) - (_VA_ALIGN(sizeof(mode), 4) - sizeof(mode))))
25#define __va_double_arg(list, mode) \
26 ((((long) list & 0x1) \
27 ? (list = (char*) ((long) list + 7), (char*) ((long) list - 6 - _VA_FP_SAVE_AREA)) \
28 : (((long) list & 0x2) \
29 ? (list = (char*) ((long) list + 10), (char*) ((long) list - 24 - _VA_FP_SAVE_AREA)) \
30 : __va_stack_arg(list, mode))))
32#define va_arg(list, mode) \
33 ((mode*) (((__builtin_classof(mode) == _FP && __builtin_alignof(mode) == sizeof(double)) \
34 ? __va_double_arg(list, mode) \
35 : __va_stack_arg(list, mode))))[-1]
#define va_list
Definition stdarg.h:6