Home
last modified time | relevance | path

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

/system/memory/libmemtrack/
Dmemtrack_test.cpp30 #define DIV_ROUND_UP(x, y) (((x) + (y)-1) / (y)) macro
81 v1 = DIV_ROUND_UP(memtrack_proc_graphics_total(p), 1024); in main()
82 v2 = DIV_ROUND_UP(memtrack_proc_graphics_pss(p), 1024); in main()
83 v3 = DIV_ROUND_UP(memtrack_proc_gl_total(p), 1024); in main()
84 v4 = DIV_ROUND_UP(memtrack_proc_gl_pss(p), 1024); in main()
85 v5 = DIV_ROUND_UP(memtrack_proc_other_total(p), 1024); in main()
86 v6 = DIV_ROUND_UP(memtrack_proc_other_pss(p), 1024); in main()
/system/core/libsparse/
Dsparse_defs.h42 #define DIV_ROUND_UP(x, y) (((x) + (y)-1) / (y)) macro
43 #define ALIGN(x, y) ((y)*DIV_ROUND_UP((x), (y)))
Dsparse.cpp82 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), s->block_size); in sparse_count_chunks()
84 if (last_block < DIV_ROUND_UP(s->len, s->block_size)) { in sparse_count_chunks()
127 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), s->block_size); in write_all_blocks()
291 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), to->block_size); in move_chunks_up_to_len()
Doutput_file.cpp541 .total_blks = static_cast<unsigned>(DIV_ROUND_UP(out->len, out->block_size)), in output_file_init()
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h60 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) macro
61 #define EXT4_ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y)))
/system/extras/ext4_utils/
Dext4_utils.cpp114 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
116 aux_info.groups = DIV_ROUND_UP(aux_info.len_blocks - aux_info.first_data_block, in ext4_create_fs_aux_info()
123 DIV_ROUND_UP(aux_info.groups * sizeof(struct ext2_group_desc), in ext4_create_fs_aux_info()
/system/extras/tests/fstest/
Drecovery_test.cpp142 int num_bgs = DIV_ROUND_UP(sb.s_blocks_count_lo, sb.s_blocks_per_group); in corruptGdtFreeBlock()