Home
last modified time | relevance | path

Searched refs:SIZE_ALIGN (Results 1 – 17 of 17) sorted by relevance

/third_party/musl/porting/linux/user/src/internal/
Dmalloc_impl.h55 #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/
Dmalloc.c89 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/
Dmalloc.c89 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 …]
Dmemalign.c20 if (align <= SIZE_ALIGN) in __memalign()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmalloc.c91 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 …]
Dmemalign.c36 if (align <= SIZE_ALIGN) in __memalign()
/third_party/musl/libc-test/src/regression/
Dmalloc-pressure.c5 #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()
Dmalloc-multi-thread-performance.c10 #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/
Dmalloc_impl.h23 #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/
Dmalloc_impl.h64 #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/
Dmalloc.c311 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 …]
Dmemalign.c29 if (align <= SIZE_ALIGN) in __memalign()
/third_party/musl/libc-test/src/functional/
Dtest-malloc-stats-common.h29 #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/
Drealloc.c21 #define SIZE_ALIGN (4 * sizeof(size_t)) macro
/third_party/f2fs-tools/include/
Df2fs_fs.h964 #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/
Dresize.c43 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/
Df2fs_format.c307 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()