/third_party/musl/porting/linux/user/src/internal/ |
D | malloc_impl.h | 55 #define SIZE_MASK (-SIZE_ALIGN) 67 #define SIZE_ALIGN (8*sizeof(size_t)) macro 70 #define SIZE_ALIGN (16*sizeof(size_t)) macro 75 #define SIZE_ALIGN (4*sizeof(size_t)) macro 78 #define SIZE_ALIGN (8*sizeof(size_t)) macro 83 #define MMAP_THRESHOLD (0x1c00*SIZE_ALIGN)
|
/third_party/musl/porting/liteos_a/user/src/malloc/ |
D | malloc.c | 89 x = x / SIZE_ALIGN - 1; in bin_index() 98 x = x / SIZE_ALIGN - 1; in bin_index_up() 136 n += SIZE_ALIGN; in expand_heap() 150 n -= SIZE_ALIGN; in expand_heap() 151 p = (char *)p + SIZE_ALIGN; in expand_heap() 175 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 180 *n = SIZE_ALIGN; in adjust_size() 184 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size() 296 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc() 297 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc() [all …]
|
/third_party/musl/src/malloc/ |
D | malloc.c | 89 x = x / SIZE_ALIGN - 1; in bin_index() 98 x = x / SIZE_ALIGN - 1; in bin_index_up() 136 n += SIZE_ALIGN; in expand_heap() 150 n -= SIZE_ALIGN; in expand_heap() 151 p = (char *)p + SIZE_ALIGN; in expand_heap() 175 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 180 *n = SIZE_ALIGN; in adjust_size() 184 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size() 299 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc() 300 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc() [all …]
|
D | memalign.c | 20 if (align <= SIZE_ALIGN) in __memalign()
|
/third_party/musl/porting/liteos_a/user_debug/src/malloc/ |
D | malloc.c | 91 x = x / SIZE_ALIGN - 1; in bin_index() 100 x = x / SIZE_ALIGN - 1; in bin_index_up() 138 n += SIZE_ALIGN; in expand_heap() 153 n -= SIZE_ALIGN; in expand_heap() 154 p = (char *)p + SIZE_ALIGN; in expand_heap() 181 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 186 *n = SIZE_ALIGN; in adjust_size() 190 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size() 319 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc() 320 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc() [all …]
|
D | memalign.c | 36 if (align <= SIZE_ALIGN) in __memalign()
|
/third_party/musl/libc-test/src/regression/ |
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()
|
D | malloc-multi-thread-performance.c | 10 #define SIZE_ALIGN (4 * sizeof(size_t)) macro 11 #define THRESHOLD (0x1c00 * SIZE_ALIGN) 14 #define MALLOC_TIME (ITER_TIME * (THRESHOLD / (SIZE_ALIGN + 1))) 30 for (size_t size = 0; size < THRESHOLD; size += SIZE_ALIGN + 1) { in func()
|
/third_party/musl/src/internal/ |
D | malloc_impl.h | 23 #define SIZE_ALIGN (4*sizeof(size_t)) macro 24 #define SIZE_MASK (-SIZE_ALIGN) 26 #define MMAP_THRESHOLD (0x1c00*SIZE_ALIGN)
|
/third_party/musl/porting/liteos_a/user_debug/src/internal/ |
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
|
/third_party/musl/porting/linux/user/src/malloc/ |
D | malloc.c | 311 x = x / SIZE_ALIGN - 1; in bin_index() 320 x = x / SIZE_ALIGN - 1; in bin_index_up() 425 n += SIZE_ALIGN; in expand_heap() 446 n -= SIZE_ALIGN; in expand_heap() 447 p = (char *)p + SIZE_ALIGN; in expand_heap() 481 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 486 *n = SIZE_ALIGN; in adjust_size() 495 *n = (*n + OVERHEAD + SIZE_ALIGN) & SIZE_MASK; in adjust_size() 497 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size() 661 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in internal_malloc() [all …]
|
D | memalign.c | 29 if (align <= SIZE_ALIGN) in __memalign()
|
/third_party/musl/libc-test/src/functional/ |
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/ |
D | realloc.c | 21 #define SIZE_ALIGN (4 * sizeof(size_t)) macro
|
/third_party/f2fs-tools/include/ |
D | f2fs_fs.h | 964 #define MAX_SIT_BITMAP_SIZE (SEG_ALIGN(SIZE_ALIGN(F2FS_MAX_SEGMENT, \ 1380 #define SIZE_ALIGN(val, size) ((val) + (size) - 1) / (size) macro 1381 #define SEG_ALIGN(blks) SIZE_ALIGN(blks, c.blks_per_seg) 1382 #define ZONE_ALIGN(blks) SIZE_ALIGN(blks, c.blks_per_seg * \
|
/third_party/f2fs-tools/fsck/ |
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/ |
D | f2fs_format.c | 307 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block() 320 blocks_for_nat = SIZE_ALIGN(total_valid_blks_available, in f2fs_prepare_super_block()
|