Searched refs:DIV_ROUND_UP (Results 1 – 4 of 4) sorted by relevance
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | u_idalloc.c | 55 util_idalloc_resize(buf, DIV_ROUND_UP(initial_num_ids, 32)); in util_idalloc_init() 105 unsigned num_alloc = DIV_ROUND_UP(num, 32); in util_idalloc_alloc_range()
|
D | macros.h | 357 #define DIV_ROUND_UP( A, B ) ( ((A) + (B) - 1) / (B) ) macro
|
D | fossilize_db.c | 194 int64_t iterations = MAX2(DIV_ROUND_UP(timeout, 1000000), 1); in lock_file_with_timeout()
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/ |
D | vk_image.c | 266 extent.width = DIV_ROUND_UP(extent.width, fmt->block.width); in vk_image_extent_to_elements() 267 extent.height = DIV_ROUND_UP(extent.height, fmt->block.height); in vk_image_extent_to_elements() 268 extent.depth = DIV_ROUND_UP(extent.depth, fmt->block.depth); in vk_image_extent_to_elements() 311 DIV_ROUND_UP(row_length, fmt->block.width) * element_size_B; in vk_image_buffer_copy_layout() 313 DIV_ROUND_UP(image_height, fmt->block.height) * (uint64_t)row_stride_B; in vk_image_buffer_copy_layout()
|