Function broadword::select1_raw [] [src]

pub fn select1_raw(r: usize, x: u64) -> usize

Finds the index of the rth one bit in x, returning 72 when not found.

Branchless. Uses the broadword algorithm from Vigna. Note that bits are numbered from least-significant to most.