repo.or.cz
/
neatlibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
malloc: more compact memory pools
[neatlibc.git]
/
stdarg.c
blob
a2a4d583fa720b8cb74ef8c7d9321c9ea98eadc5
1
#include <stdarg.h>
2
3
#define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
4
5
void
*
__va_arg
(
void
**
ap
,
int
size
)
6
{
7
void
*
ret
= *
ap
;
8
*
ap
+=
ALIGN
(
size
,
sizeof
(
long
));
9
return
ret
;
10
}