(existing: &mut [u64], new: &[u64])
| 106 | /// Or the bits from `new` with `old` returning the total number of bits set. |
| 107 | #[cold] |
| 108 | pub 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). |