#const-generics #bit #array #hamming #generics #const #compile-time

no-std bitarray

A const generics driven bit array specialized for hamming distance

22 releases (8 breaking)

0.10.0 Aug 15, 2021
0.9.3 Jul 21, 2021
0.8.0 Jul 18, 2021
0.2.6 Sep 11, 2020
0.1.2 Feb 21, 2019

#131 in No standard library

Download history 127/week @ 2024-06-10 157/week @ 2024-06-17 184/week @ 2024-06-24 73/week @ 2024-07-01 90/week @ 2024-07-08 170/week @ 2024-07-15 154/week @ 2024-07-22 178/week @ 2024-07-29 202/week @ 2024-08-05 141/week @ 2024-08-12 146/week @ 2024-08-19 143/week @ 2024-08-26 169/week @ 2024-09-02 155/week @ 2024-09-09 161/week @ 2024-09-16 180/week @ 2024-09-23

680 downloads per month
Used in 7 crates

MIT license

17KB
298 lines

bitarray

Discord Crates.io MIT/Apache docs.rs LoC Tests Lints no_std

A compile time sized array of bits that uses const generics and intrinsics.

This library was created to maximize the speed of hamming weight and hamming distance computation. It could be used for many other things. Contributions are welcome!

The minimum supported rustc version is 1.51

Features

Enable the unstable-512-bit-simd feature if you would like to use 512-bit SIMD instructions to speed up the library. This feature does not compile on all machines for some currently unknown reason, as an LLVM intrinsics error is reported, even with the same compiler version and host tripple.

Questions

Please visit Discord if you have any questions or want to contribute. Also feel free to file an issue on GitHub.

Dependencies

~200KB