Home
last modified time | relevance | path

Searched refs:next_power_of_two (Results 1 – 15 of 15) sorted by relevance

/external/pffft/
Dpffft_common.c23 static int next_power_of_two(int N) { in next_power_of_two() function
59 int pffft_next_power_of_two(int N) { return next_power_of_two(N); } in pffft_next_power_of_two()
65 int pffftd_next_power_of_two(int N) { return next_power_of_two(N); } in pffftd_next_power_of_two()
Dbench_pffft.c512 int nextPow2N = PFFFT_FUNC(next_power_of_two)(N);
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtopk_ops.cc190 int32 next_power_of_two = 1U << log2_ceiling; in CreateTopKUnique() local
191 int32 count_mask = next_power_of_two - 1; in CreateTopKUnique()
269 uint32 next_power_of_two = 1U << log2_ceiling; in CreateMakeUnique() local
270 uint32 count_mask = ~(next_power_of_two - 1); in CreateMakeUnique()
/external/libdrm/radeon/
Dradeon_surface.c149 static unsigned next_power_of_two(unsigned x) in next_power_of_two() function
163 val = next_power_of_two(val); in mip_minify()
1430 surflevel->npix_x = mip_minify(next_power_of_two(surf->npix_x), level); in si_surf_minify()
1436 surflevel->nblk_x = (next_power_of_two(surflevel->npix_x) + surf->blk_w - 1) / surf->blk_w; in si_surf_minify()
1437 surflevel->nblk_y = (next_power_of_two(surflevel->npix_y) + surf->blk_h - 1) / surf->blk_h; in si_surf_minify()
1438 surflevel->nblk_z = (next_power_of_two(surflevel->npix_z) + surf->blk_d - 1) / surf->blk_d; in si_surf_minify()
1480 surflevel->npix_x = mip_minify(next_power_of_two(surf->npix_x), level); in si_surf_minify_2d()
1486 surflevel->nblk_x = (next_power_of_two(surflevel->npix_x) + surf->blk_w - 1) / surf->blk_w; in si_surf_minify_2d()
1487 surflevel->nblk_y = (next_power_of_two(surflevel->npix_y) + surf->blk_h - 1) / surf->blk_h; in si_surf_minify_2d()
1488 surflevel->nblk_z = (next_power_of_two(surflevel->npix_z) + surf->blk_d - 1) / surf->blk_d; in si_surf_minify_2d()
[all …]
/external/llvm-project/clang/utils/hmaptool/
Dhmaptool157 def next_power_of_two(value): function
179 num_buckets = next_power_of_two(len(mappings) * 3)
/external/crosvm/sys_util/poll_token_derive/
Dpoll_token_derive.rs33 variants.len().next_power_of_two().trailing_zeros() in variant_bits()
/external/rust/crates/num-integer/src/
Droots.rs231 if hi.next_power_of_two().trailing_zeros() * n >= bits::<$T>() {
/external/rust/crates/bindgen/src/codegen/
Dstruct_layout.rs55 n = n.next_power_of_two(); in bytes_from_bits_pow2()
/external/rust/crates/crossbeam-channel/src/flavors/
Darray.rs107 let mark_bit = (cap + 1).next_power_of_two(); in with_capacity()
/external/rust/crates/tokio/src/sync/
Dbroadcast.rs433 capacity = capacity.next_power_of_two(); in channel()
/external/rust/crates/rayon/src/slice/
Dquicksort.rs551 let modulus = len.next_power_of_two(); in break_patterns()
/external/rust/crates/parking_lot_core/src/
Dparking_lot.rs47 let new_size = (num_threads * LOAD_FACTOR).next_power_of_two(); in new()
/external/rust/crates/crossbeam-deque/src/
Ddeque.rs43 debug_assert_eq!(cap, cap.next_power_of_two()); in alloc()
/external/OpenCL-CTS/test_common/harness/
DimageHelpers.cpp321 uint32_t next_power_of_two(uint32_t v) in next_power_of_two() function
335 return next_power_of_two(get_pixel_size(format)); in get_pixel_alignment()
/external/rust/crates/hashbrown/src/raw/
Dmod.rs215 Some(adjusted_cap.next_power_of_two()) in capacity_to_buckets()