Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

Runtime SIMD feature detection and dispatch. Runtime SIMD feature detection and function-pointer dispatch.

On first access the best available SIMD level is detected via CPUID (x86_64) or compile-time knowledge (aarch64, where NEON is mandatory). The result is cached in a OnceLock so subsequent calls are a single pointer load.

Structs§

SimdOps
Function-pointer table for the three core SIMD operations.

Enums§

SimdLevel
Supported SIMD instruction set level, ordered from least to most capable.

Functions§

detect
Detect the best SIMD level supported by the current CPU at runtime.
ops
Return a reference to the auto-detected SimdOps dispatch table.