Skip to content

Commit 1d93dfb

Browse files
committed
optional arm feature complex
1 parent 69f5e8e commit 1d93dfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libsrc/core/simd_arm64.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ namespace ngcore
154154
return FNMA(SIMD<double,2> (a), b, c);
155155
}
156156

157+
#ifdef __ARM_FEATURE_COMPLEX
157158
// ARM complex mult:
158159
// https://arxiv.org/pdf/1901.07294.pdf
159160
// c += a*b (a0re, a0im, a1re, a1im, ...),
@@ -162,6 +163,7 @@ namespace ngcore
162163
auto tmp = vcmlaq_f64(c.Data(), a.Data(), b.Data()); // are * b
163164
c = vcmlaq_rot90_f64(tmp, a.Data(), b.Data()); // += i*aim * b
164165
}
166+
#endif
165167

166168

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

0 commit comments

Comments
 (0)