Home
last modified time | relevance | path

Searched refs:SIZE_ALIGN (Results 1 - 16 of 16) sorted by relevance

/third_party/musl/src/malloc/oldmalloc/
H A Dmalloc_impl.h73 #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 Dmalloc.c99 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 Daligned_alloc.c24 if (align <= SIZE_ALIGN) in aligned_alloc()
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
H A 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 in malloc()
[all...]
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/
H A 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 in malloc()
[all...]
H A Dmalloc_impl.h64 #define SIZE_ALIGN ROUNDUP(sizeof(struct chunk), 0x10) macro
65 #define SIZE_MASK (-SIZE_ALIGN)
72 #define DONTCARE SIZE_ALIGN
H A Daligned_alloc.c22 if (align <= SIZE_ALIGN) in aligned_alloc()
/third_party/musl/libc-test/src/regression/
H A 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()
H A 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/
H A 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/
H A Drealloc.c21 #define SIZE_ALIGN (4 * sizeof(size_t)) macro
/third_party/musl/src/malloc/
H A Dmemalign.c37 if (align <= SIZE_ALIGN) in __memalign()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
H A Dmemalign.c36 if (align <= SIZE_ALIGN) in __memalign()
/third_party/f2fs-tools/include/
H A Df2fs_fs.h1168 #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 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/
H A 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()

Completed in 12 milliseconds