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

Function or_bits

hail-fuzz/src/coverage.rs:108–113  ·  view source on GitHub ↗
(existing: &mut [u64], new: &[u64])

Source from the content-addressed store, hash-verified

106/// Or the bits from `new` with `old` returning the total number of bits set.
107#[cold]
108pub fn or_bits(existing: &mut [u64], new: &[u64]) -> usize {
109 for (new, existing) in new[..].iter().zip(existing.iter_mut()) {
110 *existing |= *new;
111 }
112 count_all_bits(existing) as usize
113}
114
115/// Create a zero initialized coverage array on the heap (note: we do this instead of directly
116/// initializing the value [0; _], to avoid excess stack usage in debug mode).

Callers 1

mergeMethod · 0.85

Calls 1

count_all_bitsFunction · 0.85

Tested by

no test coverage detected