Lines Matching refs:uptr
29 static uptr allocated_for_dlsym;
30 static const uptr kDlsymAllocPoolSize = 1024;
31 static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize];
34 uptr off = (uptr)ptr - (uptr)alloc_memory_for_dlsym; in IsInDlsymAllocPool()
38 static void *AllocateFromLocalPool(uptr size_in_bytes) { in AllocateFromLocalPool()
39 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool()
60 INTERCEPTOR(void*, malloc, uptr size) { in INTERCEPTOR()
68 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR()
76 INTERCEPTOR(void*, realloc, void *ptr, uptr size) { in INTERCEPTOR()
79 uptr offset = (uptr)ptr - (uptr)alloc_memory_for_dlsym; in INTERCEPTOR()
80 uptr copy_size = Min(size, kDlsymAllocPoolSize - offset); in INTERCEPTOR()
88 INTERCEPTOR(void*, memalign, uptr boundary, uptr size) { in INTERCEPTOR()
93 INTERCEPTOR(void*, aligned_alloc, uptr boundary, uptr size) { in INTERCEPTOR()
98 INTERCEPTOR(void*, __libc_memalign, uptr boundary, uptr size) { in INTERCEPTOR()
105 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR() argument
129 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR()
135 INTERCEPTOR(void*, valloc, uptr size) { in INTERCEPTOR()
140 INTERCEPTOR(void*, pvalloc, uptr size) { in INTERCEPTOR()
154 void *(*malloc)(uptr bytes);
156 void *(*calloc)(uptr n_elements, uptr elem_size);
157 void *(*realloc)(void *oldMem, uptr bytes);
158 void *(*memalign)(uptr alignment, uptr bytes);
159 uptr (*malloc_usable_size)(void *mem);
163 void *(*calloc)(uptr n_elements, uptr elem_size);
166 void *(*malloc)(uptr bytes);
167 uptr (*malloc_usable_size)(void *mem);
168 void *(*memalign)(uptr alignment, uptr bytes);
169 int (*posix_memalign)(void **memptr, uptr alignment, uptr size);
170 void* (*pvalloc)(uptr size);
171 void *(*realloc)(void *oldMem, uptr bytes);
172 void* (*valloc)(uptr size);