Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 7 of 7) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrstr.c69 size_t l, ip, jp, k, p, ms, p0, mem, mem0; in twoway_strstr() local
123 mem = 0; in twoway_strstr()
145 if (k < mem) k = mem; in twoway_strstr()
147 mem = 0; in twoway_strstr()
152 mem = 0; in twoway_strstr()
157 for (k=MAX(ms+1,mem); n[k] && n[k] == h[k]; k++); in twoway_strstr()
160 mem = 0; in twoway_strstr()
164 for (k=ms+1; k>mem && n[k-1] == h[k-1]; k--); in twoway_strstr()
165 if (k <= mem) return (char *)h; in twoway_strstr()
167 mem = mem0; in twoway_strstr()
/bionic/libc/bionic/
Dmalloc_limit.cpp48 static void LimitFree(void* mem);
60 static size_t LimitUsableSize(const void* mem);
106 static inline void* IncrementLimit(void* mem) { in IncrementLimit() argument
107 if (__predict_false(mem == nullptr)) { in IncrementLimit()
110 atomic_fetch_add(&gAllocated, LimitUsableSize(mem)); in IncrementLimit()
111 return mem; in IncrementLimit()
128 void LimitFree(void* mem) { in LimitFree() argument
129 atomic_fetch_sub(&gAllocated, LimitUsableSize(mem)); in LimitFree()
132 return dispatch_table->free(mem); in LimitFree()
134 return Malloc(free)(mem); in LimitFree()
[all …]
Dgwp_asan_wrappers.cpp123 void gwp_asan_free(void* mem) { in gwp_asan_free() argument
124 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_free()
125 GuardedAlloc.deallocate(mem); in gwp_asan_free()
128 prev_dispatch->free(mem); in gwp_asan_free()
140 size_t gwp_asan_malloc_usable_size(const void* mem) { in gwp_asan_malloc_usable_size() argument
141 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_malloc_usable_size()
142 return GuardedAlloc.getSize(mem); in gwp_asan_malloc_usable_size()
144 return prev_dispatch->malloc_usable_size(mem); in gwp_asan_malloc_usable_size()
Dmalloc_common.cpp76 extern "C" void free(void* mem) { in free() argument
78 mem = MaybeUntagAndCheckPointer(mem); in free()
80 dispatch_table->free(mem); in free()
82 Malloc(free)(mem); in free()
125 extern "C" size_t malloc_usable_size(const void* mem) { in malloc_usable_size() argument
127 mem = MaybeUntagAndCheckPointer(mem); in malloc_usable_size()
129 return dispatch_table->malloc_usable_size(mem); in malloc_usable_size()
131 return Malloc(malloc_usable_size)(mem); in malloc_usable_size()
/bionic/libc/kernel/uapi/linux/
Dkexec.h46 const void * mem; member
/bionic/libc/kernel/uapi/asm-arm/asm/
Dsetup.h108 struct tag_mem32 mem; member
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp1035 void* mem = debug_malloc(100); in TEST_F() local
1036 write(0, mem, 0); in TEST_F()
1037 debug_free(mem); in TEST_F()