Searched refs:mem (Results 1 – 9 of 9) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | strstr.c | 69 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()
|
D | memmem.c | 72 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/ |
D | malloc_limit.cpp | 49 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 …]
|
D | malloc_common.cpp | 78 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()
|
D | gwp_asan_wrappers.cpp | 85 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/ |
D | kexec.h | 38 const void * mem; member
|
/bionic/libc/kernel/uapi/asm-arm/asm/ |
D | setup.h | 96 struct tag_mem32 mem; member
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 1104 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/ |
D | Android.bp | 2223 "libarm-optimized-routines-mem",
|