Searched refs:elem_size (Results 1 – 4 of 4) sorted by relevance
/bionic/libc/bionic/ |
D | malloc_limit.cpp | 47 static void* LimitCalloc(size_t n_elements, size_t elem_size); 114 void* LimitCalloc(size_t n_elements, size_t elem_size) { in LimitCalloc() argument 116 if (__builtin_mul_overflow(n_elements, elem_size, &total) || !CheckLimit(total)) { in LimitCalloc() 117 warning_log("malloc_limit: calloc(%zu, %zu) exceeds limit %" PRId64, n_elements, elem_size, in LimitCalloc() 123 return IncrementLimit(dispatch_table->calloc(n_elements, elem_size)); in LimitCalloc() 125 return IncrementLimit(Malloc(calloc)(n_elements, elem_size)); in LimitCalloc()
|
D | gwp_asan_wrappers.cpp | 111 void* gwp_asan_calloc(size_t n_elements, size_t elem_size) { in gwp_asan_calloc() argument 114 if (!__builtin_mul_overflow(n_elements, elem_size, &bytes)) { in gwp_asan_calloc() 120 return prev_dispatch->calloc(n_elements, elem_size); in gwp_asan_calloc()
|
D | malloc_common.cpp | 64 extern "C" void* calloc(size_t n_elements, size_t elem_size) { in calloc() argument 67 return MaybeTagPointer(dispatch_table->calloc(n_elements, elem_size)); in calloc() 69 void* result = Malloc(calloc)(n_elements, elem_size); in calloc() 71 warning_log("calloc(%zu, %zu) failed: returning null pointer", n_elements, elem_size); in calloc()
|
/bionic/libc/kernel/uapi/linux/ |
D | videodev2.h | 928 __u32 elem_size; member
|