Skip to main content

count_levels_eq

Function count_levels_eq 

Source
fn count_levels_eq(levels: &[i16], level: i16) -> usize
Expand description

Returns the number of levels equal to level.

Summing into a u16, over chunks short enough that the sum cannot overflow, helps the compiler vectorize the count better than summing into a usize.