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

Function bucket_count_afl_first

hail-fuzz/src/coverage.rs:286–298  ·  view source on GitHub ↗
(count: u8)

Source from the content-addressed store, hash-verified

284/// better).
285#[rustfmt::skip]
286const fn bucket_count_afl_first(count: u8) -> u8 {
287 match count {
288 0 => 0b0000_0000,
289 1 => 0b0000_0001,
290 2 => 0b0000_0011,
291 3 => 0b0000_0111,
292 4..=7 => 0b0000_1111,
293 8..=15 => 0b0001_1111,
294 16..=31 => 0b0011_1111,
295 32..=127 => 0b0111_1111,
296 128..=255 => 0b1111_1111,
297 }
298}
299
300/// Buckets counts such that entries that are hit a small number of times are consider interesting.
301///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected