Skip to main content

dispatch

Macro dispatch 

Source
macro_rules! dispatch {
    (|$lanes:ident| $simd:expr) => { ... };
}
Expand description

Algorithm X, steps X1–X2: if a SIMD backend is compiled in and available, returns from the enclosing function with the value of $simd, an expression in which $lanes is the backend’s four-lane arithmetic (crate::simd::Lanes), evaluated inside pulp’s vectorize (which enables the target features for the code inlined into it). Otherwise falls through to step X3, written after the macro call.