Lines Matching refs:bytes

63 void* hooks_memalign(size_t alignment, size_t bytes);
64 void* hooks_aligned_alloc(size_t alignment, size_t bytes);
65 void* hooks_realloc(void* pointer, size_t bytes);
66 void* hooks_calloc(size_t nmemb, size_t bytes);
77 void* hooks_pvalloc(size_t bytes);
81 static void* default_malloc_hook(size_t bytes, const void*) { in default_malloc_hook() argument
82 return g_dispatch->malloc(bytes); in default_malloc_hook()
85 static void* default_realloc_hook(void* pointer, size_t bytes, const void*) { in default_realloc_hook() argument
86 return g_dispatch->realloc(pointer, bytes); in default_realloc_hook()
93 static void* default_memalign_hook(size_t alignment, size_t bytes, const void*) { in default_memalign_hook() argument
94 return g_dispatch->memalign(alignment, bytes); in default_memalign_hook()
142 void* hooks_memalign(size_t alignment, size_t bytes) { in hooks_memalign() argument
144 return __memalign_hook(alignment, bytes, __builtin_return_address(0)); in hooks_memalign()
146 return g_dispatch->memalign(alignment, bytes); in hooks_memalign()
149 void* hooks_realloc(void* pointer, size_t bytes) { in hooks_realloc() argument
151 return __realloc_hook(pointer, bytes, __builtin_return_address(0)); in hooks_realloc()
153 return g_dispatch->realloc(pointer, bytes); in hooks_realloc()
156 void* hooks_calloc(size_t nmemb, size_t bytes) { in hooks_calloc() argument
159 if (__builtin_mul_overflow(nmemb, bytes, &size)) { in hooks_calloc()
168 return g_dispatch->calloc(nmemb, bytes); in hooks_calloc()
231 void* hooks_pvalloc(size_t bytes) { in hooks_pvalloc() argument
233 size_t size = __BIONIC_ALIGN(bytes, pagesize); in hooks_pvalloc()
234 if (size < bytes) { in hooks_pvalloc()