1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

comment out fcmla in vector types: need also MultAddReal

This commit is contained in:
nmeyer-ur 2020-06-12 18:37:19 +02:00
parent 2a23f133e8
commit 87266ce099

View File

@ -327,7 +327,8 @@ public:
// FIXME -- alias this to an accelerator_inline MAC struct.
#if defined(A64FX) || defined(A64FXFIXEDSIZE)
//#if defined(A64FX) || defined(A64FXFIXEDSIZE)
#if 0
friend accelerator_inline void mac(Grid_simd *__restrict__ y,
const Grid_simd *__restrict__ a,
const Grid_simd *__restrict__ x) {
@ -820,7 +821,8 @@ accelerator_inline Grid_simd<S, V> operator*(Grid_simd<S, V> a, Grid_simd<S, V>
// ---------------- A64FX MAC -------------------
// Distinguish between complex types and others
#if defined(A64FX) || defined(A64FXFIXEDSIZE)
//#if defined(A64FX) || defined(A64FXFIXEDSIZE)
#if 0
template <class S, class V, IfComplex<S> = 0>
accelerator_inline Grid_simd<S, V> fxmac(Grid_simd<S, V> a, Grid_simd<S, V> b, Grid_simd<S, V> c) {
Grid_simd<S, V> ret;
@ -832,6 +834,7 @@ accelerator_inline Grid_simd<S, V> fxmac(Grid_simd<S, V> a, Grid_simd<S, V> b, G
template <class S, class V, IfNotComplex<S> = 0>
accelerator_inline Grid_simd<S, V> fxmac(Grid_simd<S, V> a, Grid_simd<S, V> b, Grid_simd<S, V> c) {
Grid_simd<S, V> ret;
// MultSIMD takes only 2 args -> need MultAddReal
ret.v = trinary<V>(a.v, b.v, c.v, MultSIMD());
return ret;
};