Skip to main content

oldest_first_kernel

Function oldest_first_kernel 

Source
pub fn oldest_first_kernel(request: [bool; 64], start: b6) -> (bool, b6)
Expand description

First set bit at or after start (wrapping), as (found, index).

Two levels of eight so the logic stays shallow: within each group of eight the first candidate, then the first group that has one. Bits at or after start are tried before the wrapped-around ones.