bitintr 0.1.0

Portable Bit Manipulation Intrinsics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Example of the top-level readme

extern crate bitintr;
use bitintr::bmi2::*;

fn main() {
    let x = 1;
    let y = 0;
    // Intrinsics can be used as methods:
    let method_call = x.pdep(y);
    // And as free function calls:
    let free_call = pdep(x, y);
    assert_eq!(method_call, free_call);
}