How SIMD acceleration works in RustFFT
masterRustFFT uses SIMD (Single Instruction, Multiple Data) to accelerate FFT computations. The behavior depends on the target architecture:
- x86_64: Automatically detects and uses AVX (if
avxandfmaare supported) or SSE4.1. No special code is required;FftPlannerhandles the selection. - AArch64: Automatically detects and uses NEON instructions via
FftPlanner. - WebAssembly: Does not support dynamic feature detection. To use WASM SIMD, you must explicitly enable the
wasm_simdfeature flag. Note that running SIMD-enabled WASM on a runtime that does not support fixed-width SIMD will cause a trap (immediate execution cancellation).