Skip to main content

proc_avx_enabled

Function proc_avx_enabled 

Source
pub unsafe extern "C" fn proc_avx_enabled() -> bool_
Expand description

Returns whether AVX (or AVX2) is enabled by both the processor and the OS. Even if the processor supports AVX, if the OS does not enable AVX, then AVX instructions will fault.