4 #define ALIGN(x) (((x) + (sizeof(size_t) - 1)) & ~(sizeof(size_t) - 1))
7 calloc(size_t nelem
, size_t elsize
)
11 size_t size
= ALIGN(nelem
* elsize
);
14 if (p
== NULL
) return NULL
;
15 q
= (size_t *) (p
+ size
);
16 while ((char *) q
> p
) *--q
= 0;