Lines Matching refs:n_elements

687   calloc(size_t n_elements, size_t element_size);
688 Returns a pointer to n_elements * element_size bytes, with all locations
810 independent_calloc(size_t n_elements, size_t element_size, void* chunks[]);
813 single cleared space, it returns an array of pointers to n_elements
825 n_elements in length. It is filled in with the pointers to the
829 null if the allocation failed. If n_elements is zero and "chunks"
864 independent_comalloc(size_t n_elements, size_t sizes[], void* chunks[]);
866 independent_comalloc allocates, all at once, a set of n_elements
877 must be of at least n_elements in length. It is filled in with the
881 null if the allocation failed. If n_elements is zero and chunks is
915 larger values of n_elements. For small values, you probably won't
1065 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1077 void** mspace_independent_calloc(mspace msp, size_t n_elements,
1084 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
3931 size_t n_elements,
3958 if (n_elements == 0)
3965 if (n_elements == 0)
3968 array_size = request2size(n_elements * (sizeof(void*)));
3974 contents_size = n_elements * element_size;
3979 for (i = 0; i != n_elements; ++i)
4021 if (i != n_elements-1) {
4047 for (i = 0; i != n_elements; ++i)
4293 void* dlcalloc(size_t n_elements, size_t elem_size) {
4296 if (n_elements != 0) {
4297 req = n_elements * elem_size;
4298 if (((n_elements | elem_size) & ~(size_t)0xffff) &&
4299 (req / n_elements != elem_size))
4335 void** dlindependent_calloc(size_t n_elements, size_t elem_size,
4338 return ialloc(gm, n_elements, &sz, 3, chunks);
4341 void** dlindependent_comalloc(size_t n_elements, size_t sizes[],
4343 return ialloc(gm, n_elements, sizes, 0, chunks);
4691 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) {
4699 if (n_elements != 0) {
4700 req = n_elements * elem_size;
4701 if (((n_elements | elem_size) & ~(size_t)0xffff) &&
4702 (req / n_elements != elem_size))
4744 void** mspace_independent_calloc(mspace msp, size_t n_elements,
4752 return ialloc(ms, n_elements, &sz, 3, chunks);
4755 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
4762 return ialloc(ms, n_elements, sizes, 0, chunks);