Home
last modified time | relevance | path

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

/third_party/musl/src/malloc/oldmalloc/
H A Dmalloc_impl.h75 #define OVERHEAD (sizeof(struct chunk)) macro
76 #define BLOCK_HEAD (sizeof(struct heap_block) + OVERHEAD)
85 #define OVERHEAD (2*sizeof(size_t)) macro
95 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD)
96 #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD)
H A Dmalloc.c265 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
330 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()
349 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()
350 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
351 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()
439 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
513 new = malloc(n-OVERHEAD); in realloc()
516 memcpy(new, p, (n<n0 ? n : n0) - OVERHEAD); in realloc()
667 size_t align_start_up = (SIZE_ALIGN-1) & (-(uintptr_t)start - OVERHEAD); in __malloc_donate()
679 if (end - start <= OVERHEAD in __malloc_donate()
[all...]
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_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)
H A 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/musl/porting/liteos_a/user/src/malloc/oldmalloc/
H A 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 in __malloc_donate()
[all...]
/third_party/ltp/testcases/realtime/func/sched_latency/
H A 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/
H A Dtest-malloc-stats-common.h30 #define MMAP_THRESHOLD ((0x1c00 * SIZE_ALIGN) - OVERHEAD)
32 #define OVERHEAD (sizeof(size_t) + LIST_OVERHEAD) macro
/third_party/musl/src/malloc/liteos_a/user_debug/
H A Dmemory_check.c811 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
H A Dmemory_check.c796 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail()

Completed in 7 milliseconds