Home
last modified time | relevance | path

Searched refs:count_ones (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/num-traits/src/
Dint.rs66 fn count_ones(self) -> u32; in count_ones() method
398 fn count_ones(self) -> u32 {
399 <$T>::count_ones(self)
/external/rust/crates/rand_core/src/
Dlib.rs513 let weight = r1.count_ones(); in test_seed_from_u64()
523 let diff_weight = (r1 ^ r2).count_ones(); in test_seed_from_u64()
/external/rust/crates/ahash/src/
Dhash_quality_test.rs14 let flipped_bits = (a ^ b).count_ones(); in assert_sufficiently_different()
23 let flipped_bits2 = (a ^ (b.rotate_left(rotate))).count_ones(); in assert_sufficiently_different()
298 let flipped_bits = (value ^ long.finish()).count_ones(); in test_padding_doesnot_collide()
327 let flipped_bits = (value ^ long.finish()).count_ones(); in test_padding_doesnot_collide()
/external/rust/crates/getrandom/tests/common/
Dmod.rs25 n_diff_bits += (v1[i] ^ v2[i]).count_ones(); in test_diff()
/external/rust/beto-rust/nearby/presence/ldt/examples/
Dldt_prp.rs125 .map(|(plain_byte, mangled_byte)| (plain_byte ^ mangled_byte).count_ones()) in do_trial()
/external/crosvm/disk/src/qcow/
Dqcow_raw_file.rs30 if cluster_size.count_ones() != 1 { in from()
/external/rust/crates/num-bigint/tests/
Dbiguint.rs1832 assert_eq!(BigUint::from(0u8).count_ones(), 0); in test_count_ones()
1833 assert_eq!(BigUint::from(1u8).count_ones(), 1); in test_count_ones()
1834 assert_eq!(BigUint::from(2u8).count_ones(), 1); in test_count_ones()
1835 assert_eq!(BigUint::from(3u8).count_ones(), 2); in test_count_ones()
1837 assert_eq!(x.count_ones(), 4); in test_count_ones()
/external/rust/crates/vulkano/src/render_pass/
Ddesc.rs399 .count_ones() in used_layer_count()
/external/rust/crates/num-bigint/src/
Dbiguint.rs917 pub fn count_ones(&self) -> u64 { in count_ones() method
918 self.data.iter().map(|&d| u64::from(d.count_ones())).sum() in count_ones()
/external/rust/crates/num-traits/tests/
Dcast.rs196 assert_eq!(max.count_ones(), $f::MANTISSA_DIGITS);
/external/crosvm/bit_field/bit_field_derive/
Dbit_field_derive.rs235 if len.count_ones() != 1 { in bitfield_enum_without_width_impl()
/external/rust/crates/num-bigint/
DRELEASES.md57 - [The new `BigUint` methods `count_ones` and `trailing_ones`][175] return the
/external/crosvm/devices/src/pci/
Dpci_configuration.rs492 if config.size.count_ones() != 1 { in add_pci_bar()
/external/crosvm/devices/src/virtio/gpu/
Dmod.rs1234 _ => self.capset_mask.count_ones(), in get_config()
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs643 debug_assert_eq!(lg_base.count_ones(), 1); // Must 2**n for n >= 0. in newRR()
/external/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs3041 s += i.count_ones();
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/
Dmod.rs3897 s += i.count_ones();
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs3652 s += i.count_ones();