Skip to content

Commit e7be9e4

Browse files
committed
optional arm feature complex
1 parent ceedd8a commit e7be9e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libsrc/core/simd_arm64.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ namespace ngcore
214214
return FNMA(SIMD<double,2> (a), b, c);
215215
}
216216

217+
#ifdef __ARM_FEATURE_COMPLEX
217218
// ARM complex mult:
218219
// https://arxiv.org/pdf/1901.07294.pdf
219220
// c += a*b (a0re, a0im, a1re, a1im, ...),
@@ -231,7 +232,7 @@ namespace ngcore
231232
FMAComplex (a.Hi(), b.Hi(), chi);
232233
c = SIMD<double,4> (clo, chi);
233234
}
234-
235+
#endif
235236

236237

237238
NETGEN_INLINE SIMD<double,2> operator+ (SIMD<double,2> a, SIMD<double,2> b)

0 commit comments

Comments
 (0)