From e09a38d804559e1a3a424f2aa24893bf00dd6ec7 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 21 Nov 2022 11:47:06 +0100 Subject: [PATCH] fix fmaddsub intrinsic calls --- libsrc/core/simd_avx.hpp | 6 +++--- libsrc/core/simd_avx512.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libsrc/core/simd_avx.hpp b/libsrc/core/simd_avx.hpp index 61042982..bf27b82c 100644 --- a/libsrc/core/simd_avx.hpp +++ b/libsrc/core/simd_avx.hpp @@ -221,13 +221,13 @@ namespace ngcore #endif #if defined(__FMA__) - NETGEN_INLINE auto FMAddSub (SIMD a, SIMD b, SIMD c) + NETGEN_INLINE SIMD FMAddSub (SIMD a, SIMD b, SIMD c) { - return _mm256_fmaddsub_pd(a,b,c); + return _mm256_fmaddsub_pd(a.Data(), b.Data(), c.Data()); } #endif - NETGEN_INLINE auto SwapPairs (SIMD a) + NETGEN_INLINE SIMD SwapPairs (SIMD a) { return _mm256_shuffle_pd (a.Data(), a.Data(), 0b0101); } diff --git a/libsrc/core/simd_avx512.hpp b/libsrc/core/simd_avx512.hpp index cfddbe07..b1f74a21 100644 --- a/libsrc/core/simd_avx512.hpp +++ b/libsrc/core/simd_avx512.hpp @@ -259,12 +259,12 @@ namespace ngcore return _mm512_fnmadd_pd (_mm512_set1_pd(a), b.Data(), c.Data()); } - NETGEN_INLINE auto FMAddSub (SIMD a, SIMD b, SIMD c) + NETGEN_INLINE SIMD FMAddSub (SIMD a, SIMD b, SIMD c) { - return _mm512_fmaddsub_pd(a,b,c); + return _mm512_fmaddsub_pd(a.Data(), b.Data(), c.Data()); } - NETGEN_INLINE auto SwapPairs (SIMD a) + NETGEN_INLINE SIMD SwapPairs (SIMD a) { return _mm512_shuffle_pd (a.Data(), a.Data(), 0b01010101); }