Home
last modified time | relevance | path

Searched refs:OVERHEAD (Results 1 – 9 of 9) sorted by relevance

/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
Dmalloc.c246 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
302 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()
306 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()
307 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
308 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()
374 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
426 new = malloc(n-OVERHEAD); in realloc()
429 memcpy(new, p, (n<n0 ? n : n0) - OVERHEAD); in realloc()
523 size_t align_start_up = (SIZE_ALIGN-1) & (-(uintptr_t)start - OVERHEAD); in __malloc_donate()
529 if (end - start <= OVERHEAD + align_start_up + align_end_down) in __malloc_donate()
[all …]
/third_party/musl/src/malloc/oldmalloc/
Dmalloc.c246 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
302 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()
306 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()
307 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
308 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()
374 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
426 new = malloc(n-OVERHEAD); in realloc()
429 memcpy(new, p, (n<n0 ? n : n0) - OVERHEAD); in realloc()
523 size_t align_start_up = (SIZE_ALIGN-1) & (-(uintptr_t)start - OVERHEAD); in __malloc_donate()
529 if (end - start <= OVERHEAD + align_start_up + align_end_down) in __malloc_donate()
[all …]
Dmalloc_impl.h20 #define OVERHEAD (2*sizeof(size_t)) macro
29 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD)
30 #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD)
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/
Dmalloc_impl.h66 #define OVERHEAD (sizeof(struct chunk)) macro
67 #define BLOCK_HEAD (sizeof(struct heap_block) + OVERHEAD)
79 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD)
80 #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD)
Dmalloc.c253 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
312 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()
327 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()
328 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
329 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()
409 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
475 new = malloc(n-OVERHEAD); in realloc()
478 memcpy(new, p, (n<n0 ? n : n0) - OVERHEAD); in realloc()
/third_party/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c64 #define OVERHEAD 50000 // allow for 50 us of periodic overhead (context switch, etc.) macro
253 if (load_ms * NS_PER_MS >= period - OVERHEAD) { in main()
255 OVERHEAD / NS_PER_US); in main()
/third_party/musl/libc-test/src/functional/
Dtest-malloc-stats-common.h30 #define MMAP_THRESHOLD ((0x1c00 * SIZE_ALIGN) - OVERHEAD)
32 #define OVERHEAD (sizeof(size_t) + LIST_OVERHEAD) macro
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmemory_check.c796 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail()