From ef06642cc21b43f055f57be44c72ea26ade05bbc Mon Sep 17 00:00:00 2001 From: qbisi Date: Mon, 15 Sep 2025 16:15:52 +0800 Subject: [PATCH] optional arm feature complex --- libsrc/core/simd_arm64.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/core/simd_arm64.hpp b/libsrc/core/simd_arm64.hpp index 5bc833fd..4da11d3c 100644 --- a/libsrc/core/simd_arm64.hpp +++ b/libsrc/core/simd_arm64.hpp @@ -214,6 +214,7 @@ namespace ngcore return FNMA(SIMD (a), b, c); } +#ifdef __ARM_FEATURE_COMPLEX // ARM complex mult: // https://arxiv.org/pdf/1901.07294.pdf // c += a*b (a0re, a0im, a1re, a1im, ...), @@ -231,7 +232,7 @@ namespace ngcore FMAComplex (a.Hi(), b.Hi(), chi); c = SIMD (clo, chi); } - +#endif NETGEN_INLINE SIMD operator+ (SIMD a, SIMD b)