mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-27 14:15:55 +01:00
comment out fcmla in vector types: need also MultAddReal
This commit is contained in:
parent
2a23f133e8
commit
87266ce099
@ -327,7 +327,8 @@ public:
|
|||||||
|
|
||||||
// FIXME -- alias this to an accelerator_inline MAC struct.
|
// 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,
|
friend accelerator_inline void mac(Grid_simd *__restrict__ y,
|
||||||
const Grid_simd *__restrict__ a,
|
const Grid_simd *__restrict__ a,
|
||||||
const Grid_simd *__restrict__ x) {
|
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 -------------------
|
// ---------------- A64FX MAC -------------------
|
||||||
// Distinguish between complex types and others
|
// 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>
|
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) {
|
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;
|
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>
|
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) {
|
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;
|
Grid_simd<S, V> ret;
|
||||||
|
// MultSIMD takes only 2 args -> need MultAddReal
|
||||||
ret.v = trinary<V>(a.v, b.v, c.v, MultSIMD());
|
ret.v = trinary<V>(a.v, b.v, c.v, MultSIMD());
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user