Searched refs:count_ones (Results 1 – 18 of 18) sorted by relevance
66 fn count_ones(self) -> u32; in count_ones() method398 fn count_ones(self) -> u32 {399 <$T>::count_ones(self)
513 let weight = r1.count_ones(); in test_seed_from_u64()523 let diff_weight = (r1 ^ r2).count_ones(); in test_seed_from_u64()
14 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()
25 n_diff_bits += (v1[i] ^ v2[i]).count_ones(); in test_diff()
125 .map(|(plain_byte, mangled_byte)| (plain_byte ^ mangled_byte).count_ones()) in do_trial()
30 if cluster_size.count_ones() != 1 { in from()
1832 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()
399 .count_ones() in used_layer_count()
917 pub fn count_ones(&self) -> u64 { in count_ones() method918 self.data.iter().map(|&d| u64::from(d.count_ones())).sum() in count_ones()
196 assert_eq!(max.count_ones(), $f::MANTISSA_DIGITS);
235 if len.count_ones() != 1 { in bitfield_enum_without_width_impl()
57 - [The new `BigUint` methods `count_ones` and `trailing_ones`][175] return the
492 if config.size.count_ones() != 1 { in add_pci_bar()
1234 _ => self.capset_mask.count_ones(), in get_config()
643 debug_assert_eq!(lg_base.count_ones(), 1); // Must 2**n for n >= 0. in newRR()
3041 s += i.count_ones();
3897 s += i.count_ones();
3652 s += i.count_ones();