Skip to main content

Module simd

Module simd 

Source
Expand description

SIMD (Single Instruction Multiple Data) optimizations

Provides vectorized operations for 2-8x performance improvements on supported CPUs. Automatically detects CPU features and falls back to scalar implementations when needed.

Structs§

SimdFeatures
CPU feature detection for SIMD support

Enums§

SimdLevel
SIMD instruction set level

Functions§

add_f32
Vectorized element-wise addition
dot_product_f32
Vectorized dot product (f32)
relu_f32
Vectorized ReLU activation
simd_features
Get global SIMD features (cached detection)