#x86 #binary #bits #bitfields #BMI

nightly bits

x86 BMI-style bit manipulation routines

5 releases

0.0.4 Mar 31, 2015
0.0.3 Mar 30, 2015
0.0.2 Mar 30, 2015
0.0.1 Mar 30, 2015
0.0.0 Mar 29, 2015

#9 in #bitfields

Download history 10/week @ 2019-11-27 10/week @ 2019-12-04 128/week @ 2019-12-11 5/week @ 2019-12-25 4/week @ 2020-01-01 19/week @ 2020-01-08 10/week @ 2020-01-15 1/week @ 2020-01-22 1/week @ 2020-01-29 1/week @ 2020-02-05 5/week @ 2020-02-12 10/week @ 2020-02-19 10/week @ 2020-02-26 10/week @ 2020-03-04 5/week @ 2020-03-11

76 downloads per month

MIT license

12KB
281 lines

bits.rs

x86 BMI-style bit manipulation routines

Synopsis

This library provides various bit manipulation routines not available in Rust std. Currently it is just a portable implementation of the x86 ABM, BMI 1/2, and TBM instruction sets but the API may expand in the future. The implementation will (eventually) take advantage of specialized hardware instructions available on the native platform.

Documentation

See the API documentation here.

Requirements

  1. Rust
  2. Cargo

You can install both with the following:

$ curl -s https://static.rust-lang.org/rustup.sh | sudo sh

See Installing Rust for further details.

Usage

$ cargo build       ## build library/binary
$ cargo run         ## run examples
$ cargo test        ## run tests

No runtime deps