Checks if vector instructions are supported Determines whether the target architecture supports advanced vector processing capabilities beyond basic SIMD. Vector instructions typically provide more sophisticated parallel processing features than basic SIMD.
Vector Instruction Support
- x86_64: Advanced vector extensions (AVX, AVX2, AVX-512)
- ARM64: Advanced NEON, Scalable Vector Extensions (SVE)
- RISC-V 64: RISC-V Vector Extension (RVV)
- Other architectures: Limited or experimental vector support
Capabilities
- Variable-length vectors: Adapt to hardware capabilities
- Advanced operations: Predication, gather/scatter, reduction
- Scalable performance: Efficient across different vector widths
- Returns
- true if advanced vector instruction support is available
- Note
- This function is constexpr and evaluates at compile time
-
This checks architectural capability, not runtime availability
- See also
- hasSimdSupport() for basic SIMD capability check
-
features.hpp for runtime vector feature detection
processing
return process_with_vectors(data);
return process_with_simd(data);
} else {
return process_scalar(data);
}
- Since
- 1.0.0