mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
fix fmaddsub intrinsic calls
This commit is contained in:
parent
f457009083
commit
e09a38d804
@ -221,13 +221,13 @@ namespace ngcore
|
||||
#endif
|
||||
|
||||
#if defined(__FMA__)
|
||||
NETGEN_INLINE auto FMAddSub (SIMD<double,4> a, SIMD<double,4> b, SIMD<double,4> c)
|
||||
NETGEN_INLINE SIMD<double,4> FMAddSub (SIMD<double,4> a, SIMD<double,4> b, SIMD<double,4> c)
|
||||
{
|
||||
return _mm256_fmaddsub_pd(a,b,c);
|
||||
return _mm256_fmaddsub_pd(a.Data(), b.Data(), c.Data());
|
||||
}
|
||||
#endif
|
||||
|
||||
NETGEN_INLINE auto SwapPairs (SIMD<double,4> a)
|
||||
NETGEN_INLINE SIMD<double,4> SwapPairs (SIMD<double,4> a)
|
||||
{
|
||||
return _mm256_shuffle_pd (a.Data(), a.Data(), 0b0101);
|
||||
}
|
||||
|
@ -259,12 +259,12 @@ namespace ngcore
|
||||
return _mm512_fnmadd_pd (_mm512_set1_pd(a), b.Data(), c.Data());
|
||||
}
|
||||
|
||||
NETGEN_INLINE auto FMAddSub (SIMD<double,8> a, SIMD<double,8> b, SIMD<double,8> c)
|
||||
NETGEN_INLINE SIMD<double,8> FMAddSub (SIMD<double,8> a, SIMD<double,8> b, SIMD<double,8> c)
|
||||
{
|
||||
return _mm512_fmaddsub_pd(a,b,c);
|
||||
return _mm512_fmaddsub_pd(a.Data(), b.Data(), c.Data());
|
||||
}
|
||||
|
||||
NETGEN_INLINE auto SwapPairs (SIMD<double,8> a)
|
||||
NETGEN_INLINE SIMD<double,8> SwapPairs (SIMD<double,8> a)
|
||||
{
|
||||
return _mm512_shuffle_pd (a.Data(), a.Data(), 0b01010101);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user