From 409c460d2f87d9352aa31b23de8beeede3ef4347 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 2 Apr 2022 10:36:00 +0200 Subject: [PATCH] fix non-default SIMD-size --- libsrc/core/simd_generic.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsrc/core/simd_generic.hpp b/libsrc/core/simd_generic.hpp index b40607a4..c9cdcc59 100644 --- a/libsrc/core/simd_generic.hpp +++ b/libsrc/core/simd_generic.hpp @@ -571,31 +571,31 @@ namespace ngcore using std::sqrt; template NETGEN_INLINE ngcore::SIMD sqrt (ngcore::SIMD a) { - return ngcore::SIMD([a](int i)->double { return sqrt(a[i]); } ); + return ngcore::SIMD([a](int i)->double { return sqrt(a[i]); } ); } using std::fabs; template NETGEN_INLINE ngcore::SIMD fabs (ngcore::SIMD a) { - return ngcore::SIMD([a](int i)->double { return fabs(a[i]); } ); + return ngcore::SIMD([a](int i)->double { return fabs(a[i]); } ); } using std::floor; template NETGEN_INLINE ngcore::SIMD floor (ngcore::SIMD a) { - return ngcore::SIMD([a](int i)->double { return floor(a[i]); } ); + return ngcore::SIMD([a](int i)->double { return floor(a[i]); } ); } using std::ceil; template NETGEN_INLINE ngcore::SIMD ceil (ngcore::SIMD a) { - return ngcore::SIMD([a](int i)->double { return ceil(a[i]); } ); + return ngcore::SIMD([a](int i)->double { return ceil(a[i]); } ); } using std::exp; template NETGEN_INLINE ngcore::SIMD exp (ngcore::SIMD a) { - return ngcore::SIMD([a](int i)->double { return exp(a[i]); } ); + return ngcore::SIMD([a](int i)->double { return exp(a[i]); } ); } using std::log;