Skip to main content

is_64bit

Function is_64bit 

Source
pub fn is_64bit() -> bool
Expand description

Whether the processor is 64-bit. A 32-bit program on a 64-bit machine still sees true (D-024); the program’s own bitness is cpu::arch().is_64bit().

assert_ne!(sys_lib::cpu::is_64bit(), sys_lib::cpu::is_32bit());