|
Argon 0.1.0
|
Header file for SIMD features and platform detection. More...
#include <stdbool.h>

Go to the source code of this file.
Namespaces | |
| namespace | argon |
| A 128-bit SIMD vector wrapping a scalar type, providing arithmetic, logical, and data-movement operations. | |
Macros | |
| #define | ARGON_PLATFORM_SIMDE true |
| #define | ARGON_HAS_FLOAT true |
| #define | ARGON_HAS_HALF_FLOAT false |
| #define | ARGON_HAS_SINGLE_FLOAT true |
| #define | ARGON_HAS_DOUBLE_FLOAT false |
| #define | ARGON_HAS_MAXNM false |
| True where vmaxnm/vminnm exist (simd::max_strict / min_strict): Helium with floating point, and Armv8 NEON. | |
| #define | ARGON_HAS_FUSED_MULTIPLY_ADD false |
| True where float lanes have a fused multiply-add (one rounding): VFPv4 and Armv8 NEON, Helium with floating point, and SIMDe on a host with FMA. | |
| #define | ARGON_NEON_FP16_VECTOR false |
| True where NEON has half-precision vector arithmetic (FEAT_FP16), so the f16 forms of vmaxnm/vminnm exist. | |
| #define | ARGON_USE_COMPILER_EXTENSIONS 1 |
| #define | ARGON_GCC_AARCH32_FLOAT false |
| True where GCC compiles AArch32 NEON code without -ffast-math: it then scalarises generic vector-extension float arithmetic, comparisons and ? | |
| #define | ARGON_HAS_CRYPTO false |
| Set to 1 when the AES and PMULL crypto intrinsics are available. | |
Enumerations | |
| enum class | Platform { NEON , MVE , SIMDe } |
Variables | |
| constexpr Platform | argon::platform = Platform::SIMDe |
Header file for SIMD features and platform detection.
| #define ARGON_GCC_AARCH32_FLOAT false |
True where GCC compiles AArch32 NEON code without -ffast-math: it then scalarises generic vector-extension float arithmetic, comparisons and ?
: to VFP (NEON flushes denormals, so it isn't IEEE), so Argon routes float operations through NEON builtins and inline vcgt/vcge instead (argon/helpers/float_fixups.hpp).
| #define ARGON_HAS_CRYPTO false |
Set to 1 when the AES and PMULL crypto intrinsics are available.
Requires __ARM_FEATURE_CRYPTO (ARMv8 Cryptographic Extension).
| #define ARGON_HAS_FUSED_MULTIPLY_ADD false |
True where float lanes have a fused multiply-add (one rounding): VFPv4 and Armv8 NEON, Helium with floating point, and SIMDe on a host with FMA.
Armv7 VFPv3 (Cortex-A9) has none. Argon::MultiplyAddFused exists exactly here.