4 void *calloc(size_t m, size_t n)
8 if (n && m > (size_t)-1/n) {
15 /* Only do this for non-mmapped chunks */
16 if (((size_t *)p)[-1] & 7) {
17 /* Only write words that are not already zero */
18 m = (n + sizeof *z - 1)/sizeof *z;
19 for (z=p; m; m--, z++) if (*z) *z=0;