TRLC Platform Library  1.0.0
Header-only C++ library for compile-time platform detection and abstraction
SIMD-aware

Checks if SIMD instructions are supported Determines whether the target architecture has Single Instruction, Multiple Data (SIMD) capabilities for parallel processing. This is a compile-time architectural capability check, not a runtime feature detection.

SIMD Support by Architecture

Performance Implications

Returns
true if SIMD instruction support is architecturally available
Note
This function is constexpr and evaluates at compile time
For runtime SIMD feature detection, see features.hpp
See also
hasVectorInstructions() for advanced vector processing
ArchitectureInfo::hasSimdSupport() for member function version

algorithm selection

template<typename T>
void process_array(const T* input, T* output, size_t size) {
if constexpr (trlc::platform::hasSimdSupport()) {
// Use SIMD optimized version
process_array_simd(input, output, size);
} else {
// Use scalar fallback
process_array_scalar(input, output, size);
}
}
static bool hasSimdSupport()
Since
1.0.0