/third_party/musl/src/malloc/oldmalloc/ |
H A D | malloc_impl.h | 73 #define SIZE_ALIGN ROUNDUP(sizeof(struct chunk), 0x10) macro 74 #define SIZE_MASK (-SIZE_ALIGN) 81 #define DONTCARE SIZE_ALIGN 83 #define SIZE_ALIGN (4*sizeof(size_t)) macro 84 #define SIZE_MASK (-SIZE_ALIGN) 86 #define MMAP_THRESHOLD (0x1c00*SIZE_ALIGN)
|
H A D | malloc.c | 99 x = x / SIZE_ALIGN - 1; in bin_index() 108 x = x / SIZE_ALIGN - 1; in bin_index_up() 213 n += SIZE_ALIGN; in expand_heap() 225 n -= SIZE_ALIGN; in expand_heap() 226 p = (char *)p + SIZE_ALIGN; in expand_heap() 256 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 261 *n = SIZE_ALIGN; in adjust_size() 265 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size() 349 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc() 350 c->csize = len - (SIZE_ALIGN in malloc() [all...] |
H A D | aligned_alloc.c | 24 if (align <= SIZE_ALIGN) in aligned_alloc()
|
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/ |
H A D | malloc.c | 95 x = x / SIZE_ALIGN - 1; in bin_index() 104 x = x / SIZE_ALIGN - 1; in bin_index_up() 205 n += SIZE_ALIGN; in expand_heap() 214 n -= SIZE_ALIGN; in expand_heap() 215 p = (char *)p + SIZE_ALIGN; in expand_heap() 237 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 242 *n = SIZE_ALIGN; in adjust_size() 246 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size() 306 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc() 307 c->csize = len - (SIZE_ALIGN in malloc() [all...] |
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/ |
H A D | malloc.c | 97 x = x / SIZE_ALIGN - 1; in bin_index() 106 x = x / SIZE_ALIGN - 1; in bin_index_up() 207 n += SIZE_ALIGN; in expand_heap() 217 n -= SIZE_ALIGN; in expand_heap() 218 p = (char *)p + SIZE_ALIGN; in expand_heap() 244 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 249 *n = SIZE_ALIGN; in adjust_size() 253 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size() 327 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc() 328 c->csize = len - (SIZE_ALIGN in malloc() [all...] |
H A D | malloc_impl.h | 64 #define SIZE_ALIGN ROUNDUP(sizeof(struct chunk), 0x10) macro 65 #define SIZE_MASK (-SIZE_ALIGN) 72 #define DONTCARE SIZE_ALIGN
|
H A D | aligned_alloc.c | 22 if (align <= SIZE_ALIGN) in aligned_alloc()
|
/third_party/musl/libc-test/src/regression/ |
H A D | malloc-pressure.c | 5 #define SIZE_ALIGN (4 * sizeof(size_t)) macro 6 #define THRESHOLD (0x1c00 * SIZE_ALIGN) 15 for (size_t size = 0; size < THRESHOLD; size += SIZE_ALIGN + 1) { in main()
|
H A D | malloc-multi-thread-performance.c | 10 #define SIZE_ALIGN (4 * sizeof(size_t)) macro 16 #define MALLOC_TIME (ITER_TIME * (THRESHOLD / (SIZE_ALIGN + 1))) 41 for (size_t size = 0; size < THRESHOLD; size += SIZE_ALIGN + 1) { in func()
|
/third_party/musl/libc-test/src/functional/ |
H A D | test-malloc-stats-common.h | 29 #define SIZE_ALIGN (8 * sizeof(size_t)) macro 30 #define MMAP_THRESHOLD ((0x1c00 * SIZE_ALIGN) - OVERHEAD)
|
/third_party/musl/libc-test/src/functionalext/supplement/malloc/ |
H A D | realloc.c | 21 #define SIZE_ALIGN (4 * sizeof(size_t)) macro
|
/third_party/musl/src/malloc/ |
H A D | memalign.c | 37 if (align <= SIZE_ALIGN) in __memalign()
|
/third_party/musl/porting/liteos_a/user_debug/src/malloc/ |
H A D | memalign.c | 36 if (align <= SIZE_ALIGN) in __memalign()
|
/third_party/f2fs-tools/include/ |
H A D | f2fs_fs.h | 1168 #define MAX_SIT_BITMAP_SIZE (SEG_ALIGN(SIZE_ALIGN(F2FS_MAX_SEGMENT, \ 1171 #define MAX_CP_PAYLOAD (SEG_ALIGN(SIZE_ALIGN(UINT32_MAX, NAT_ENTRY_PER_BLOCK)) * \ 1616 #define SIZE_ALIGN(val, size) (((val) + (size) - 1) / (size)) macro 1617 #define SEG_ALIGN(blks) SIZE_ALIGN(blks, c.blks_per_seg) 1618 #define ZONE_ALIGN(blks) SIZE_ALIGN(blks, c.blks_per_seg * \
|
/third_party/f2fs-tools/fsck/ |
H A D | resize.c | 43 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in get_new_sb() 52 blocks_for_nat = SIZE_ALIGN(total_valid_blks_available, in get_new_sb()
|
/third_party/f2fs-tools/mkfs/ |
H A D | f2fs_format.c | 333 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block() 346 blocks_for_nat = SIZE_ALIGN(total_valid_blks_available, in f2fs_prepare_super_block()
|