|
nfx-cpu 0.1.3
Cross-platform C++ CPU feature detection and system identification library
|
CPU feature detection for SIMD instruction sets. More...
#include "nfx/detail/cpu/FeatureDetection.inl"

Go to the source code of this file.
Functions | |
| bool | nfx::cpu::hasSse42Support () noexcept |
| Gets the cached SSE4.2 support status. | |
| bool | nfx::cpu::hasAvxSupport () noexcept |
| Gets the cached AVX support status. | |
| bool | nfx::cpu::hasAvx2Support () noexcept |
| Gets the cached AVX2 support status. | |
| bool | nfx::cpu::verifySse42Support () noexcept |
| Verifies that compile-time flags match runtime capabilities for SSE4.2. | |
| bool | nfx::cpu::verifyAvxSupport () noexcept |
| Verifies that compile-time flags match runtime capabilities for AVX. | |
| bool | nfx::cpu::verifyAvx2Support () noexcept |
| Verifies that compile-time flags match runtime capabilities for AVX2. | |
CPU feature detection for SIMD instruction sets.
Runtime detection of SSE4.2, AVX, and AVX2 support with static caching for zero-overhead repeated queries
Definition in file FeatureDetection.h.
|
inlinenodiscardnoexcept |
Gets the cached AVX2 support status.
Checks CPU capabilities for AVX2 (Advanced Vector Extensions 2) instructions, which provide 256-bit SIMD operations for vectorized processing. AVX2 enables:
|
inlinenodiscardnoexcept |
Gets the cached AVX support status.
Checks CPU capabilities for AVX (Advanced Vector Extensions) instructions, which provide 256-bit SIMD operations for floating-point processing. AVX enables:
|
inlinenodiscardnoexcept |
Gets the cached SSE4.2 support status.
Checks CPU capabilities for SSE4.2 CRC32 instructions. Result is cached via static initialization for zero runtime overhead.
|
inlinenodiscardnoexcept |
Verifies that compile-time flags match runtime capabilities for AVX2.
Checks if AVX2 was compiled in and is available at runtime. Issues warnings or assertions if there's a mismatch.
|
inlinenodiscardnoexcept |
Verifies that compile-time flags match runtime capabilities for AVX.
Checks if AVX was compiled in and is available at runtime. Issues warnings or assertions if there's a mismatch.
|
inlinenodiscardnoexcept |
Verifies that compile-time flags match runtime capabilities for SSE4.2.
Checks if SSE4.2 was compiled in and is available at runtime. Issues warnings or assertions if there's a mismatch.