Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/libs/hwui/utils/
H A DMacros.h43 #define ALIGN(x) (((x) + ALIGN_SZ - 1) & ~(ALIGN_SZ - 1)) macro
44 #define ALIGN_PTR(p) ((void*)(ALIGN((size_t)(p))))
H A DLinearAllocator.cpp141 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 Dsparse_defs.h43 #define ALIGN(x, y) ((y)*DIV_ROUND_UP((x), (y))) macro
H A Doutput_file.cpp375 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 Dsparse_read.cpp553 end = ALIGN(end, s->block_size); in sparse_file_read_hole()
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp27 #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 Dfs_config.cpp51 #define ALIGN(x, alignment) (((x) + ((alignment)-1)) & ~((alignment)-1)) macro