Home
last modified time | relevance | path

Searched refs:round_up (Results 1 – 25 of 59) sorted by relevance

123

/external/grpc-grpc/src/core/lib/transport/
Dtimeout_encoding.cc28 static int64_t round_up(int64_t x, int64_t divisor) { in round_up() function
35 if (x < 10000) return round_up(x, 10); in round_up_to_three_sig_figs()
36 if (x < 100000) return round_up(x, 100); in round_up_to_three_sig_figs()
37 if (x < 1000000) return round_up(x, 1000); in round_up_to_three_sig_figs()
38 if (x < 10000000) return round_up(x, 10000); in round_up_to_three_sig_figs()
39 if (x < 100000000) return round_up(x, 100000); in round_up_to_three_sig_figs()
40 if (x < 1000000000) return round_up(x, 1000000); in round_up_to_three_sig_figs()
41 return round_up(x, 10000000); in round_up_to_three_sig_figs()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/
Dtimeout_encoding.cc28 static int64_t round_up(int64_t x, int64_t divisor) { in round_up() function
35 if (x < 10000) return round_up(x, 10); in round_up_to_three_sig_figs()
36 if (x < 100000) return round_up(x, 100); in round_up_to_three_sig_figs()
37 if (x < 1000000) return round_up(x, 1000); in round_up_to_three_sig_figs()
38 if (x < 10000000) return round_up(x, 10000); in round_up_to_three_sig_figs()
39 if (x < 100000000) return round_up(x, 100000); in round_up_to_three_sig_figs()
40 if (x < 1000000000) return round_up(x, 1000000); in round_up_to_three_sig_figs()
41 return round_up(x, 10000000); in round_up_to_three_sig_figs()
/external/rust/crates/ring/src/
Dbits.rs37 let round_up = self.0 & 1; in half_rounded_up() localVariable
38 Self((self.0 / 2) + round_up) in half_rounded_up()
53 let round_up = ((self.0 >> 2) | (self.0 >> 1) | self.0) & 1; in as_usize_bytes_rounded_up() localVariable
55 (self.0 / 8) + round_up in as_usize_bytes_rounded_up()
/external/arm-trusted-firmware/include/plat/common/
Dcommon_def.h71 #define BL1_RO_DATA_END round_up(BL1_ROM_END, PAGE_SIZE)
75 #define BL2_RO_DATA_END round_up(BL2_ROM_END, PAGE_SIZE)
80 #define BL1_CODE_END round_up(BL1_ROM_END, PAGE_SIZE)
84 #define BL2_CODE_END round_up(BL2_ROM_END, PAGE_SIZE)
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_xdp_meta.c8 #define round_up(x, y) ((((x) - 1) | __round_mask(x, y)) + 1) macro
22 data_meta + round_up(ETH_ALEN, 4) > data) in ing_cls()
37 ret = bpf_xdp_adjust_meta(ctx, -round_up(ETH_ALEN, 4)); in ing_xdp()
46 data_meta + round_up(ETH_ALEN, 4) > data) in ing_xdp()
/external/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc215 const size_t round_up; member
341 size_t round_up = 16; in RoundedUpBlockSize() local
342 while (round_up < sizeof(AllocList::Header)) { in RoundedUpBlockSize()
343 round_up += round_up; in RoundedUpBlockSize()
345 return round_up; in RoundedUpBlockSize()
355 round_up(RoundedUpBlockSize()), in Arena()
356 min_size(2 * round_up), in Arena()
531 arena->round_up); in DoAllocWithArena()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc215 const size_t round_up; member
341 size_t round_up = 16; in RoundedUpBlockSize() local
342 while (round_up < sizeof(AllocList::Header)) { in RoundedUpBlockSize()
343 round_up += round_up; in RoundedUpBlockSize()
345 return round_up; in RoundedUpBlockSize()
355 round_up(RoundedUpBlockSize()), in Arena()
356 min_size(2 * round_up), in Arena()
531 arena->round_up); in DoAllocWithArena()
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dlow_level_alloc.cc215 const size_t round_up; member
341 size_t round_up = 16; in RoundedUpBlockSize() local
342 while (round_up < sizeof(AllocList::Header)) { in RoundedUpBlockSize()
343 round_up += round_up; in RoundedUpBlockSize()
345 return round_up; in RoundedUpBlockSize()
355 round_up(RoundedUpBlockSize()), in Arena()
356 min_size(2 * round_up), in Arena()
531 arena->round_up); in DoAllocWithArena()
/external/angle/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc215 const size_t round_up; member
341 size_t round_up = 16; in RoundedUpBlockSize() local
342 while (round_up < sizeof(AllocList::Header)) { in RoundedUpBlockSize()
343 round_up += round_up; in RoundedUpBlockSize()
345 return round_up; in RoundedUpBlockSize()
355 round_up(RoundedUpBlockSize()), in Arena()
356 min_size(2 * round_up), in Arena()
531 arena->round_up); in DoAllocWithArena()
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc215 const size_t round_up; member
341 size_t round_up = 16; in RoundedUpBlockSize() local
342 while (round_up < sizeof(AllocList::Header)) { in RoundedUpBlockSize()
343 round_up += round_up; in RoundedUpBlockSize()
345 return round_up; in RoundedUpBlockSize()
355 round_up(RoundedUpBlockSize()), in Arena()
356 min_size(2 * round_up), in Arena()
531 arena->round_up); in DoAllocWithArena()
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc215 const size_t round_up; member
341 size_t round_up = 16; in RoundedUpBlockSize() local
342 while (round_up < sizeof(AllocList::Header)) { in RoundedUpBlockSize()
343 round_up += round_up; in RoundedUpBlockSize()
345 return round_up; in RoundedUpBlockSize()
355 round_up(RoundedUpBlockSize()), in Arena()
356 min_size(2 * round_up), in Arena()
531 arena->round_up); in DoAllocWithArena()
/external/mesa3d/src/gallium/drivers/vc4/kernel/
Dvc4_validate.c172 aligned_width = round_up(width, utile_w); in vc4_check_tex_size()
176 aligned_width = round_up(width, utile_w * 8); in vc4_check_tex_size()
177 aligned_height = round_up(height, utile_h * 8); in vc4_check_tex_size()
180 aligned_width = round_up(width, utile_w); in vc4_check_tex_size()
181 aligned_height = round_up(height, utile_h); in vc4_check_tex_size()
693 aligned_width = round_up(level_width, utile_w * 8); in reloc_tex()
694 aligned_height = round_up(level_height, utile_h * 8); in reloc_tex()
697 aligned_width = round_up(level_width, utile_w); in reloc_tex()
698 aligned_height = round_up(level_height, utile_h); in reloc_tex()
701 aligned_width = round_up(level_width, utile_w); in reloc_tex()
/external/arm-trusted-firmware/plat/socionext/synquacer/
Dsq_xlat_setup.c28 round_up(BL_CODE_END, PAGE_SIZE) - BL_CODE_BASE, in sq_mmap_setup()
35 round_up(BL_RO_DATA_END, PAGE_SIZE) - BL_RO_DATA_BASE, in sq_mmap_setup()
/external/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_xlat_setup.c42 round_up(BL_END, PAGE_SIZE) - BL_CODE_BASE, in uniphier_mmap_setup()
49 round_up(BL_CODE_END, PAGE_SIZE) - BL_CODE_BASE, in uniphier_mmap_setup()
/external/erofs-utils/include/
Derofs_fs.h186 #define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry))
283 (round_up(size, sizeof(struct z_erofs_vle_decompressed_index)) + \
286 #define Z_EROFS_VLE_EXTENT_ALIGN(size) round_up(size, \
/external/rust/crates/ryu/src/
Dd2s.rs304 let mut round_up = false; in d2d() localVariable
311 round_up = vr_mod100 >= 50; in d2d()
329 round_up = vr_mod10 >= 5; in d2d()
336 vr + (vr == vm || round_up) as u64 in d2d()
Ds2d.rs203 let round_up = last_removed_bit != 0 && (!trailing_zeros || ((m2 >> shift) & 1) != 0); in s2d() localVariable
205 let mut ieee_m2 = (m2 >> shift).wrapping_add(round_up as u64); in s2d()
Ds2f.rs194 let round_up = last_removed_bit != 0 && (!trailing_zeros || ((m2 >> shift) & 1) != 0); in s2f() localVariable
196 let mut ieee_m2 = (m2 >> shift).wrapping_add(round_up as u32); in s2f()
/external/igt-gpu-tools/lib/
Digt_primes.c45 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) macro
167 sz = round_up(sz, BITS_PER_LONG); in igt_next_prime_number()
/external/avb/examples/uefi/
Duefi_avb_boot.c109 static size_t round_up(size_t value, size_t size) { in round_up() function
203 offset += round_up(header->kernel_size, header->page_size); in uefi_avb_boot_kernel()
205 offset += round_up(header->ramdisk_size, header->page_size); in uefi_avb_boot_kernel()
/external/libkmsxx/kms++/src/omap/
Domapframebuffer.cpp21 #define round_up(x, y) ((((x)-1) | __round_mask(x, y)) + 1) macro
119 stride = round_up(width * pi.bitspp / 8, PAGE_SIZE); in Create()
/external/llvm-project/polly/lib/External/isl/
Disl_hash.c31 static unsigned int round_up(unsigned int v) in round_up() function
52 table->bits = ffs(round_up(4 * (min_size + 1) / 3 - 1)) - 1; in isl_hash_table_init()
/external/arm-trusted-firmware/lib/zlib/
Dtf_gunzip.c33 p = round_up(zalloc_current, ZALLOC_ALIGNMENT); in zcalloc()
/external/XNNPACK/src/operators/
Ddeconvolution-nhwc.c173 const uint32_t n_stride = round_up(group_output_channels, nr); in create_deconvolution2d_nhwc()
498 const size_t tiled_output_size = round_up(output_size, mr); in setup_conv_path()
537 .gw_stride = w_stride * round_up(group_output_channels, nr), in setup_conv_path()
657 …kernel_size * output_height * stride_width * round_up(divide_round_up(output_width, stride_width),… in setup_subconv2d_path()
695 .gw_stride = w_stride * round_up(group_output_channels, nr), in setup_subconv2d_path()
713 .gw_stride = w_stride * round_up(group_output_channels, nr), in setup_subconv2d_path()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator_validate.h46 #define round_up(x, y) align(x, y) macro

123