#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

#134 in No standard library

Download history 97/week @ 2023-12-11 107/week @ 2023-12-18 68/week @ 2023-12-25 84/week @ 2024-01-01 128/week @ 2024-01-08 118/week @ 2024-01-15 96/week @ 2024-01-22 121/week @ 2024-01-29 102/week @ 2024-02-05 92/week @ 2024-02-12 220/week @ 2024-02-19 187/week @ 2024-02-26 167/week @ 2024-03-04 146/week @ 2024-03-11 129/week @ 2024-03-18 195/week @ 2024-03-25

660 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

~210KB