Searched refs:oldsize (Results 1 – 1 of 1) sorted by relevance
33 size_t oldsize, newsize; in recallocarray() local51 oldsize = oldnmemb * size; in recallocarray()57 if (newsize <= oldsize) { in recallocarray()58 size_t d = oldsize - newsize; in recallocarray()60 if (d < oldsize / 2 && d < getpagesize()) { in recallocarray()70 if (newsize > oldsize) { in recallocarray()71 memcpy(newptr, ptr, oldsize); in recallocarray()72 memset((char *)newptr + oldsize, 0, newsize - oldsize); in recallocarray()76 explicit_bzero(ptr, oldsize); in recallocarray()