Searched refs:elem_size (Results 1 – 6 of 6) sorted by relevance
/bionic/libc/bionic/ |
D | malloc_debug_qemu.cpp | 773 extern "C" void* qemu_instrumented_calloc(size_t n_elements, size_t elem_size) { in qemu_instrumented_calloc() argument 774 if (n_elements == 0 || elem_size == 0) { in qemu_instrumented_calloc() 783 if (n_elements && SIZE_MAX / n_elements < elem_size) { in qemu_instrumented_calloc() 785 malloc_pid, getpid(), n_elements, elem_size); in qemu_instrumented_calloc() 794 if (DEFAULT_PREFIX_SIZE >= elem_size) { in qemu_instrumented_calloc() 801 desc.suffix_size = (DEFAULT_PREFIX_SIZE % elem_size) + in qemu_instrumented_calloc() 806 desc.prefix_size = elem_size + DEFAULT_PREFIX_SIZE - 1; in qemu_instrumented_calloc() 810 desc.requested_bytes = n_elements * elem_size; in qemu_instrumented_calloc() 814 malloc_pid, getpid(), n_elements, elem_size); in qemu_instrumented_calloc() 818 size_t total_elements = total_size / elem_size; in qemu_instrumented_calloc() [all …]
|
D | malloc_debug_leak.cpp | 207 extern "C" void* fill_calloc(size_t n_elements, size_t elem_size) { in fill_calloc() argument 208 return g_malloc_dispatch->calloc(n_elements, elem_size); in fill_calloc() 360 extern "C" void* leak_calloc(size_t n_elements, size_t elem_size) { in leak_calloc() argument 362 return g_malloc_dispatch->calloc(n_elements, elem_size); in leak_calloc() 367 if (n_elements && SIZE_MAX / n_elements < elem_size) { in leak_calloc() 371 size_t size = n_elements * elem_size; in leak_calloc()
|
D | malloc_debug_common.cpp | 246 extern "C" void* calloc(size_t n_elements, size_t elem_size) { in calloc() argument 247 return __libc_malloc_dispatch->calloc(n_elements, elem_size); in calloc()
|
/bionic/libc/upstream-dlmalloc/ |
D | malloc.h | 595 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size); 600 size_t elem_size, void* chunks[]);
|
D | malloc.c | 1351 DLMALLOC_EXPORT void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size); 1364 size_t elem_size, void* chunks[]); 4815 void* dlcalloc(size_t n_elements, size_t elem_size) { in dlcalloc() argument 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() 5336 void** dlindependent_calloc(size_t n_elements, size_t elem_size, in dlindependent_calloc() argument 5338 size_t sz = elem_size; /* serves as 1-element array */ in dlindependent_calloc() 5748 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) { in mspace_calloc() argument 5757 req = n_elements * elem_size; in mspace_calloc() [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | videodev2.h | 932 __u32 elem_size; member
|