Skip to main content

global_kernel

Function global_kernel 

Source
pub fn global_kernel() -> &'static dyn SimdKernel
Expand description

Returns the best available SimdKernel for this process.

The first call probes CPU feature flags and selects the optimal implementation; all subsequent calls return the cached pointer with a single Acquire load.

Priority: AVX2 (x86_64) > NEON (aarch64) > scalar.