Home
last modified time | relevance | path

Searched refs:MEM_TO_CHUNK (Results 1 - 10 of 10) sorted by relevance

/third_party/musl/src/malloc/oldmalloc/
H A Dmalloc.c227 w = MEM_TO_CHUNK(p); in expand_heap()
236 w = MEM_TO_CHUNK(end); in expand_heap()
242 w = MEM_TO_CHUNK(p); in expand_heap()
245 calculate_checksum(w, MEM_TO_CHUNK(end)); in expand_heap()
403 return IS_MMAPPED(MEM_TO_CHUNK(p)); in __malloc_allzerop()
416 self = MEM_TO_CHUNK(p); in realloc()
628 struct chunk *self = MEM_TO_CHUNK(p); in free()
688 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end); in __malloc_donate()
H A Daligned_alloc.c33 struct chunk *c = MEM_TO_CHUNK(mem); in aligned_alloc()
34 struct chunk *n = MEM_TO_CHUNK(new); in aligned_alloc()
H A Dmalloc_impl.h95 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD) macro
100 #define BIN_TO_CHUNK(i) (MEM_TO_CHUNK(&mal.bins[i].head))
H A Dmalloc_usable_size.c8 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0; in malloc_usable_size()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/
H A Dmalloc.c219 w = MEM_TO_CHUNK(p); in expand_heap()
226 w = MEM_TO_CHUNK(end); in expand_heap()
232 w = MEM_TO_CHUNK(p); in expand_heap()
234 calculate_checksum(w, MEM_TO_CHUNK(end)); in expand_heap()
377 return IS_MMAPPED(MEM_TO_CHUNK(p)); in __malloc_allzerop()
390 self = MEM_TO_CHUNK(p); in realloc()
578 struct chunk *self = MEM_TO_CHUNK(p); in free()
622 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end); in __malloc_donate()
H A Daligned_alloc.c31 struct chunk *c = MEM_TO_CHUNK(mem); in aligned_alloc()
32 struct chunk *n = MEM_TO_CHUNK(new); in aligned_alloc()
H A Dmalloc_impl.h79 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD) macro
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
H A Dmalloc.c216 w = MEM_TO_CHUNK(p); in expand_heap()
222 w = MEM_TO_CHUNK(end); in expand_heap()
228 w = MEM_TO_CHUNK(p); in expand_heap()
349 return IS_MMAPPED(MEM_TO_CHUNK(p)); in __malloc_allzerop()
362 self = MEM_TO_CHUNK(p); in realloc()
513 struct chunk *self = MEM_TO_CHUNK(p); in free()
534 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end); in __malloc_donate()
/third_party/musl/src/malloc/
H A Dmemalign.c46 struct chunk *c = MEM_TO_CHUNK(mem); in __memalign()
47 struct chunk *n = MEM_TO_CHUNK(new); in __memalign()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
H A Dmemalign.c45 struct chunk *c = MEM_TO_CHUNK(mem); in __memalign()
46 struct chunk *n = MEM_TO_CHUNK(new); in __memalign()

Completed in 5 milliseconds