Lines Matching refs:n_elements
1193 DLMALLOC_EXPORT size_t dlbulk_free(void**, size_t n_elements);
1351 DLMALLOC_EXPORT void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1363 DLMALLOC_EXPORT void** mspace_independent_calloc(mspace msp, size_t n_elements,
1370 DLMALLOC_EXPORT void** mspace_independent_comalloc(mspace msp, size_t n_elements,
4815 void* dlcalloc(size_t n_elements, size_t elem_size) { in dlcalloc() argument
4818 if (n_elements != 0) { in dlcalloc()
4819 req = n_elements * elem_size; in dlcalloc()
4820 if (((n_elements | elem_size) & ~(size_t)0xffff) && in dlcalloc()
4821 (req / n_elements != elem_size)) in dlcalloc()
5001 size_t n_elements, in ialloc() argument
5021 if (n_elements == 0) in ialloc()
5028 if (n_elements == 0) in ialloc()
5031 array_size = request2size(n_elements * (sizeof(void*))); in ialloc()
5037 contents_size = n_elements * element_size; in ialloc()
5042 for (i = 0; i != n_elements; ++i) in ialloc()
5084 if (i != n_elements-1) { in ialloc()
5110 for (i = 0; i != n_elements; ++i) in ialloc()
5341 void** dlindependent_calloc(size_t n_elements, size_t elem_size, in dlindependent_calloc() argument
5344 return ialloc(gm, n_elements, &sz, 3, chunks); in dlindependent_calloc()
5347 void** dlindependent_comalloc(size_t n_elements, size_t sizes[], in dlindependent_comalloc() argument
5349 return ialloc(gm, n_elements, sizes, 0, chunks); in dlindependent_comalloc()
5753 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) { in mspace_calloc() argument
5761 if (n_elements != 0) { in mspace_calloc()
5762 req = n_elements * elem_size; in mspace_calloc()
5763 if (((n_elements | elem_size) & ~(size_t)0xffff) && in mspace_calloc()
5764 (req / n_elements != elem_size)) in mspace_calloc()
5861 void** mspace_independent_calloc(mspace msp, size_t n_elements, in mspace_independent_calloc() argument
5869 return ialloc(ms, n_elements, &sz, 3, chunks); in mspace_independent_calloc()
5872 void** mspace_independent_comalloc(mspace msp, size_t n_elements, in mspace_independent_comalloc() argument
5879 return ialloc(ms, n_elements, sizes, 0, chunks); in mspace_independent_comalloc()