Sha256: 8da26c8cc1f40f2c5cc46b4bd125b16f030bb52679695db4f5da4eb0f7e8a977

Contents?: true

Size: 222 Bytes

Versions: 14

Compression:

Stored size: 222 Bytes

Contents

#[no_mangle]
pub extern "C" fn rust_arch_bits() -> i32 {
  use std::mem::size_of;
  let s = size_of::<usize>() * 8;
  s as i32
}

#[test]
fn it_is_32_or_64(){
  assert!(rust_arch_bits() == 32 || rust_arch_bits() == 64);
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
faster_path-0.3.10 src/rust_arch_bits.rs
faster_path-0.3.9 src/rust_arch_bits.rs
faster_path-0.3.8 src/rust_arch_bits.rs
faster_path-0.3.7 src/rust_arch_bits.rs
faster_path-0.3.6 src/rust_arch_bits.rs
faster_path-0.3.2 src/rust_arch_bits.rs
faster_path-0.3.1 src/rust_arch_bits.rs
faster_path-0.2.6 src/rust_arch_bits.rs
faster_path-0.2.5 src/rust_arch_bits.rs
faster_path-0.2.4 src/rust_arch_bits.rs
faster_path-0.2.3 src/rust_arch_bits.rs
faster_path-0.2.2 src/rust_arch_bits.rs
faster_path-0.2.1 src/rust_arch_bits.rs
faster_path-0.2.0 src/rust_arch_bits.rs