Skip to main content

detect_simd_level

Function detect_simd_level 

Source
pub fn detect_simd_level() -> SimdLevel
Expand description

Detects the widest vector width this machine supports.

The probe runs once and is cached, so the match in the trait impls costs a load and a branch rather than a cpuid.

ยงReturns

The SimdLevel to dispatch on.