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

no-std popcnt

count number of set bits in a byte slice

1 unstable release

0.1.0 Apr 12, 2024

#751 in Hardware support

Download history 105/week @ 2024-04-07 27/week @ 2024-04-14 8/week @ 2024-04-21

140 downloads per month
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
~41K SLoC