Searched refs:ALIGN (Results 1 – 7 of 7) sorted by relevance
/aosp14/frameworks/base/libs/hwui/utils/ |
H A D | Macros.h | 43 #define ALIGN(x) (((x) + ALIGN_SZ - 1) & ~(ALIGN_SZ - 1)) macro 44 #define ALIGN_PTR(p) ((void*)(ALIGN((size_t)(p))))
|
H A D | LinearAllocator.cpp | 141 mPageSize = ALIGN(mPageSize); in ensureNext() 156 size = ALIGN(size); in allocImpl() 211 allocSize = ALIGN(allocSize); in rewindIfLastAlloc() 220 pageSize = ALIGN(pageSize + sizeof(LinearAllocator::Page)); in newPage()
|
/aosp14/system/core/libsparse/ |
H A D | sparse_defs.h | 43 #define ALIGN(x, y) ((y)*DIV_ROUND_UP((x), (y))) macro
|
H A D | output_file.cpp | 375 rnd_up_len = ALIGN(len, out->block_size); in write_sparse_fill_chunk() 405 rnd_up_len = ALIGN(len, out->block_size); in write_sparse_data_chunk() 456 rnd_up_len = ALIGN(len, out->block_size); in write_sparse_fd_chunk() 540 uint64_t rnd_up_len = ALIGN(len, out->block_size); in write_normal_data_chunk() 579 uint64_t rnd_up_len = ALIGN(len, out->block_size); in write_normal_fd_chunk()
|
H A D | sparse_read.cpp | 553 end = ALIGN(end, s->block_size); in sparse_file_read_hole()
|
/aosp14/frameworks/base/media/jni/ |
H A D | android_media_Utils.cpp | 27 #define ALIGN(x, mask) ( ((x) + (mask) - 1) & ~((mask) - 1) ) macro 285 cStride = ALIGN(buffer->stride / 2, 16); in getLockedImageInfo() 298 rStride = (idx == 0) ? buffer->stride : ALIGN(buffer->stride / 2, 16); in getLockedImageInfo()
|
/aosp14/system/core/libcutils/ |
H A D | fs_config.cpp | 51 #define ALIGN(x, alignment) (((x) + ((alignment)-1)) & ~((alignment)-1)) macro
|