Mario Kart 64
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
f
l
m
o
s
u
v
Enumerations
a
b
c
d
f
g
i
l
m
p
s
t
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
stdarg.h
Go to the documentation of this file.
1
#ifndef STDARG_H
2
#define STDARG_H
3
4
// When not building with IDO, use the builtin vaarg macros for portability.
5
#ifndef __sgi
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
10
#else
11
12
typedef
char
*
va_list
;
13
#define _FP 1
14
#define _INT 0
15
#define _STRUCT 2
16
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)))
20
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))))
24
25
#define __va_double_arg(list, mode) \
26
((((long) list & 0x1)
/* 1 byte aligned? */
\
27
? (list = (char*) ((long) list + 7), (char*) ((long) list - 6 - _VA_FP_SAVE_AREA)) \
28
: (((long) list & 0x2)
/* 2 byte aligned? */
\
29
? (list = (char*) ((long) list + 10), (char*) ((long) list - 24 - _VA_FP_SAVE_AREA)) \
30
: __va_stack_arg(list, mode))))
31
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]
36
#define va_end(__list)
37
38
#endif
39
#endif
va_list
#define va_list
Definition
stdarg.h:6
include
libc
stdarg.h
Generated by
1.11.0