Home
last modified time | relevance | path

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

/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
Dmalloc.c95 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 - OVERHEAD); in malloc()
[all …]
/third_party/musl/src/malloc/oldmalloc/
Dmalloc.c95 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 - OVERHEAD); in malloc()
[all …]
Dmalloc_impl.h18 #define SIZE_ALIGN (4*sizeof(size_t)) macro
19 #define SIZE_MASK (-SIZE_ALIGN)
21 #define MMAP_THRESHOLD (0x1c00*SIZE_ALIGN)
Daligned_alloc.c21 if (align <= SIZE_ALIGN) in aligned_alloc()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/
Dmalloc.c97 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 - OVERHEAD); in malloc()
[all …]
Dmalloc_impl.h64 #define SIZE_ALIGN ROUNDUP(sizeof(struct chunk), 0x10) macro
65 #define SIZE_MASK (-SIZE_ALIGN)
72 #define DONTCARE SIZE_ALIGN
Daligned_alloc.c22 if (align <= SIZE_ALIGN) in aligned_alloc()
/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
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/
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/musl/porting/liteos_a/user_debug/src/malloc/
Dmemalign.c36 if (align <= SIZE_ALIGN) in __memalign()
/third_party/f2fs-tools/include/
Df2fs_fs.h1125 #define MAX_SIT_BITMAP_SIZE (SEG_ALIGN(SIZE_ALIGN(F2FS_MAX_SEGMENT, \
1567 #define SIZE_ALIGN(val, size) (((val) + (size) - 1) / (size)) macro
1568 #define SEG_ALIGN(blks) SIZE_ALIGN(blks, c.blks_per_seg)
1569 #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.c333 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()