Skip to main content

x86_level

Function x86_level 

Source
pub fn x86_level() -> Option<X86Level>
Expand description

The x86-64 microarchitecture level this machine reaches; None off x86-64. Under Rosetta 2 it is what Rosetta emulates (no AVX: V2).

if let Some(level) = sys_lib::cpu::x86_level() { println!("x86-64-{level:?}"); }