1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/// Links to m4ri/misc.h
use libc;

pub type Rci = libc::c_int;
pub type BIT = libc::c_int;
pub type Word = u64;
pub type Wi = libc::c_int;

#[macro_export]
macro_rules! m4ri_convert_to_word {
    ($value:expr) => {
        $value as Word
    };
}

/// The number of bits in a word
#[allow(non_upper_case_globals, dead_code)]
pub static m4ri_radix: libc::c_int = 64;

/// The number one as a word
#[allow(non_upper_case_globals, dead_code)]
pub static m4ri_one: Word = 1u64;

/// A word with all bits set
#[allow(non_upper_case_globals, dead_code)]
pub static m4ri_ffff: Word = 0xffffffffffffff;