Home
last modified time | relevance | path

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

/external/rust/crates/num-traits/src/
Dint.rs66 fn count_ones(self) -> u32; in count_ones() method
313 fn count_ones(self) -> u32 {
314 <$T>::count_ones(self)
/external/rust/crates/rand_core/src/
Dlib.rs479 let weight = r1.count_ones(); in test_seed_from_u64()
489 let diff_weight = (r1 ^ r2).count_ones(); in test_seed_from_u64()
/external/rust/crates/ahash/src/
Dhash_quality_test.rs15 let flipped_bits = (a ^ b).count_ones(); in assert_sufficiently_different()
24 let flipped_bits2 = (a ^ (b.rotate_left(rotate))).count_ones(); in assert_sufficiently_different()
276 let flipped_bits = (value ^ long.finish()).count_ones(); in test_padding_doesnot_collide()
309 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/crosvm/disk/src/qcow/
Dqcow_raw_file.rs24 if cluster_size.count_ones() != 1 { in from()
/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.rs222 if len.count_ones() != 1 { in bitfield_enum_without_width_impl()
/external/crosvm/devices/src/pci/
Dpci_configuration.rs427 if config.size.count_ones() != 1 { in add_pci_bar()
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs633 debug_assert_eq!(lg_base.count_ones(), 1); // Must 2**n for n >= 0. in newRR()
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs2873 s += i.count_ones();