Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 9 of 9) 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()
Dmemmem.c72 size_t i, ip, jp, k, p, ms, p0, mem, mem0; in twoway_memmem() local
125 mem = 0; in twoway_memmem()
136 if (k < mem) k = mem; in twoway_memmem()
138 mem = 0; in twoway_memmem()
143 mem = 0; in twoway_memmem()
148 for (k=MAX(ms+1,mem); k<l && n[k] == h[k]; k++); in twoway_memmem()
151 mem = 0; in twoway_memmem()
155 for (k=ms+1; k>mem && n[k-1] == h[k-1]; k--); in twoway_memmem()
156 if (k <= mem) return (char *)h; in twoway_memmem()
158 mem = mem0; in twoway_memmem()
/bionic/libc/bionic/
Dmalloc_limit.cpp49 static void LimitFree(void* mem);
61 static size_t LimitUsableSize(const void* mem);
107 static inline void* IncrementLimit(void* mem) { in IncrementLimit() argument
108 if (__predict_false(mem == nullptr)) { in IncrementLimit()
111 atomic_fetch_add(&gAllocated, LimitUsableSize(mem)); in IncrementLimit()
112 return mem; in IncrementLimit()
129 void LimitFree(void* mem) { in LimitFree() argument
130 atomic_fetch_sub(&gAllocated, LimitUsableSize(mem)); in LimitFree()
133 return dispatch_table->free(mem); in LimitFree()
135 return Malloc(free)(mem); in LimitFree()
[all …]
Dmalloc_common.cpp78 extern "C" void free(void* mem) { in free() argument
80 mem = MaybeUntagAndCheckPointer(mem); in free()
82 dispatch_table->free(mem); in free()
84 Malloc(free)(mem); in free()
151 extern "C" size_t malloc_usable_size(const void* mem) { in malloc_usable_size() argument
153 mem = MaybeUntagAndCheckPointer(mem); in malloc_usable_size()
155 return dispatch_table->malloc_usable_size(mem); in malloc_usable_size()
157 return Malloc(malloc_usable_size)(mem); in malloc_usable_size()
Dgwp_asan_wrappers.cpp85 void gwp_asan_free(void* mem) { in gwp_asan_free() argument
86 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_free()
87 GuardedAlloc.deallocate(mem); in gwp_asan_free()
90 prev_dispatch->free(mem); in gwp_asan_free()
102 size_t gwp_asan_malloc_usable_size(const void* mem) { in gwp_asan_malloc_usable_size() argument
103 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_malloc_usable_size()
104 return GuardedAlloc.getSize(mem); in gwp_asan_malloc_usable_size()
106 return prev_dispatch->malloc_usable_size(mem); in gwp_asan_malloc_usable_size()
/bionic/libc/kernel/uapi/linux/
Dkexec.h38 const void * mem; member
/bionic/libc/kernel/uapi/asm-arm/asm/
Dsetup.h96 struct tag_mem32 mem; member
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp1104 void* mem = debug_malloc(100); in TEST_F() local
1105 write(0, mem, 0); in TEST_F()
1106 debug_free(mem); in TEST_F()
/bionic/libc/
DAndroid.bp2223 "libarm-optimized-routines-mem",