#byte-slice #bits #simd #nightly #numbers #count-ones #avx512

no-std popcnt

count number of set bits in a byte slice

1 unstable release

0.1.0 Apr 12, 2024

#1451 in Hardware support


Used in 2 crates

MIT license

16KB
286 lines

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.

lib.rs:

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.

Dependencies

~2MB
~47K SLoC