Skip to content
forked from dongz9/bits.rs

x86 BMI-style bit manipulation routines

Notifications You must be signed in to change notification settings

isabelmu/bits.rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

x86 BMI-style bit manipulation routines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%