Skip to main content

simd

Attribute Macro simd 

Source
#[simd]
Expand description

Run a SIMD-generic function body with the token’s target features enabled.

The first typed parameter after an optional self receiver is used as the SIMD token carrier: a token, vector, mask, or a value implementing fearless_simd::ExtractToken. The library must be in scope as fearless_simd; for a renamed dependency, import it with use simd_backend as fearless_simd; in the containing module. See the crate-level documentation for the complete expansion, supported function forms, and semantic caveats.