MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / count_all_bits

Function count_all_bits

hail-fuzz/src/coverage.rs:50–52  ·  view source on GitHub ↗
(array: &[u64])

Source from the content-addressed store, hash-verified

48/// Count all bits (i.e. ones) within an array
49#[must_use]
50pub(crate) fn count_all_bits(array: &[u64]) -> u64 {
51 array.iter().map(|x| x.count_ones() as u64).sum()
52}
53
54/// Returns an iterator of the bit index of all the bits in `array)
55pub(crate) fn bit_iter(array: &[u64]) -> impl Iterator<Item = usize> + '_ {

Callers 3

check_exit_stateMethod · 0.85
after_checkMethod · 0.85
or_bitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected