Home | History | Annotate | Download | only in src

Lines Matching refs:n_elements

698   calloc(size_t n_elements, size_t element_size);
699 Returns a pointer to n_elements * element_size bytes, with all locations
821 independent_calloc(size_t n_elements, size_t element_size, void* chunks[]);
824 single cleared space, it returns an array of pointers to n_elements
836 n_elements in length. It is filled in with the pointers to the
840 null if the allocation failed. If n_elements is zero and "chunks"
875 independent_comalloc(size_t n_elements, size_t sizes[], void* chunks[]);
877 independent_comalloc allocates, all at once, a set of n_elements
888 must be of at least n_elements in length. It is filled in with the
892 null if the allocation failed. If n_elements is zero and chunks is
926 larger values of n_elements. For small values, you probably won't
1076 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1088 void** mspace_independent_calloc(mspace msp, size_t n_elements,
1095 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
3993 size_t n_elements,
4020 if (n_elements == 0)
4027 if (n_elements == 0)
4030 array_size = request2size(n_elements * (sizeof(void*)));
4036 contents_size = n_elements * element_size;
4041 for (i = 0; i != n_elements; ++i)
4083 if (i != n_elements-1) {
4109 for (i = 0; i != n_elements; ++i)
4355 void* dlcalloc(size_t n_elements, size_t elem_size) {
4358 if (n_elements != 0) {
4359 req = n_elements * elem_size;
4360 if (((n_elements | elem_size) & ~(size_t)0xffff) &&
4361 (req / n_elements != elem_size))
4397 void** dlindependent_calloc(size_t n_elements, size_t elem_size,
4400 return ialloc(gm, n_elements, &sz, 3, chunks);
4403 void** dlindependent_comalloc(size_t n_elements, size_t sizes[],
4405 return ialloc(gm, n_elements, sizes, 0, chunks);
4753 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) {
4761 if (n_elements != 0) {
4762 req = n_elements * elem_size;
4763 if (((n_elements | elem_size) & ~(size_t)0xffff) &&
4764 (req / n_elements != elem_size))
4806 void** mspace_independent_calloc(mspace msp, size_t n_elements,
4814 return ialloc(ms, n_elements, &sz, 3, chunks);
4817 void** mspace_independent_comalloc(mspace msp, size_t n_elements,
4824 return ialloc(ms, n_elements, sizes, 0, chunks);