Searched refs:count_ones (Results 1 – 10 of 10) sorted by relevance
66 fn count_ones(self) -> u32; in count_ones() method313 fn count_ones(self) -> u32 {314 <$T>::count_ones(self)
479 let weight = r1.count_ones(); in test_seed_from_u64()489 let diff_weight = (r1 ^ r2).count_ones(); in test_seed_from_u64()
15 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()
25 n_diff_bits += (v1[i] ^ v2[i]).count_ones(); in test_diff()
24 if cluster_size.count_ones() != 1 { in from()
196 assert_eq!(max.count_ones(), $f::MANTISSA_DIGITS);
222 if len.count_ones() != 1 { in bitfield_enum_without_width_impl()
427 if config.size.count_ones() != 1 { in add_pci_bar()
633 debug_assert_eq!(lg_base.count_ones(), 1); // Must 2**n for n >= 0. in newRR()
2873 s += i.count_ones();