Expand description
rust crate for counting the number of set bits in a byte slice, with simd acceleration when available.
§features
std
: enabled by default. enables runtime arch detection.nightly
: enables avx512 simd implementation.
Functions§
- count_
ones - Countes the number of bits equal to
1
in the provided slice, and returns the accumulated result.