Skip to main content

dispatch_simd

Macro dispatch_simd 

Source
macro_rules! dispatch_simd {
    (@ $target:expr, $m512bf16:ident, $m512:ident, $m256:ident $(, $arg:expr)*) => { ... };
    ($target:expr, $method:ident $(, $arg:expr)*) => { ... };
    ($method:ident ($($arg:expr),*)) => { ... };
}
Expand description

Macro for dynamic SIMD dispatch based on global configuration.

Checks TEST_ISA_OVERRIDE (u8::MAX = disabled) before consulting SIMD_MATH.instruction_set. This allows integration tests to force a specific ISA path (AVX2, AVX-512, VNNI+BF16) and measure cross-ISA determinism.