Searched refs:nmemb (Results 1 - 6 of 6) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | reallocarray.c | 30 reallocarray(void *optr, size_t nmemb, size_t size) argument 32 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 33 nmemb > 0 && SIZE_MAX / nmemb < size) { 37 return realloc(optr, size * nmemb);
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
H A D | bsearch.c | 62 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, argument 71 _DIAGASSERT(base0 != NULL || nmemb == 0); 74 for (lim = nmemb; lim != 0; lim >>= 1) {
|
/bionic/libc/malloc_hooks/ |
H A D | malloc_hooks.cpp | 64 void* hooks_calloc(size_t nmemb, size_t bytes); 153 void* hooks_calloc(size_t nmemb, size_t bytes) { argument 156 if (__builtin_mul_overflow(nmemb, bytes, &size)) { 165 return g_dispatch->calloc(nmemb, bytes);
|
/bionic/libc/malloc_debug/ |
H A D | RecordData.h | 105 CallocEntry(void* pointer, size_t size, size_t nmemb);
|
H A D | RecordData.cpp | 69 CallocEntry::CallocEntry(void* pointer, size_t nmemb, size_t size) argument 70 : MallocEntry(pointer, size), nmemb_(nmemb) {}
|
H A D | malloc_debug.cpp | 82 void* debug_calloc(size_t nmemb, size_t bytes); 648 void* debug_calloc(size_t nmemb, size_t bytes) { argument 650 return g_dispatch->calloc(nmemb, bytes); 655 if (__builtin_mul_overflow(nmemb, bytes, &size)) { 692 g_debug->record->AddEntry(new CallocEntry(pointer, bytes, nmemb));
|
Completed in 169 milliseconds