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

#138 in No standard library

Download history 160/week @ 2024-07-20 172/week @ 2024-07-27 183/week @ 2024-08-03 168/week @ 2024-08-10 143/week @ 2024-08-17 146/week @ 2024-08-24 161/week @ 2024-08-31 141/week @ 2024-09-07 170/week @ 2024-09-14 192/week @ 2024-09-21 185/week @ 2024-09-28 177/week @ 2024-10-05 168/week @ 2024-10-12 93/week @ 2024-10-19 66/week @ 2024-10-26 110/week @ 2024-11-02

474 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