From 0c5e8c8d7012d1a3b9a9380400f5d95e1c67f1be Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 12 Mar 2023 22:24:21 +0100 Subject: [PATCH] had removed too much --- libsrc/core/simd.hpp | 6 +++--- libsrc/general/autoptr.hpp | 2 ++ libsrc/general/myadt.hpp | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libsrc/core/simd.hpp b/libsrc/core/simd.hpp index 22be7bb1..d5a6341f 100644 --- a/libsrc/core/simd.hpp +++ b/libsrc/core/simd.hpp @@ -36,23 +36,23 @@ namespace ngcore { - /* #ifndef __CUDA_ARCH__ #ifdef NETGEN_ARCH_AMD64 + /* NETGEN_INLINE auto HSum (SIMD v1, SIMD v2, SIMD v3, SIMD v4) { SIMD hsum1 = my_mm_hadd_pd (v1.Data(), v2.Data()); SIMD hsum2 = my_mm_hadd_pd (v3.Data(), v4.Data()); return SIMD (hsum1, hsum2); } - + */ + NETGEN_INLINE auto GetMaskFromBits( unsigned int i ) { return SIMD::GetMaskFromBits(i); } #endif #endif // __CUDA_ARCH__ - */ NETGEN_INLINE void SIMDTranspose (SIMD a1, SIMD a2, SIMD a3, SIMD a4, SIMD & b1, SIMD & b2, SIMD & b3, SIMD & b4) diff --git a/libsrc/general/autoptr.hpp b/libsrc/general/autoptr.hpp index 3de595ad..6089ea50 100644 --- a/libsrc/general/autoptr.hpp +++ b/libsrc/general/autoptr.hpp @@ -1,3 +1,5 @@ +braucht man nicht mehr + #ifndef FILE_AUTOPTR #define FILE_AUTOPTR diff --git a/libsrc/general/myadt.hpp b/libsrc/general/myadt.hpp index d117d55d..871de4f1 100644 --- a/libsrc/general/myadt.hpp +++ b/libsrc/general/myadt.hpp @@ -38,7 +38,7 @@ namespace netgen #include "seti.hpp" #include "optmem.hpp" -#include "autoptr.hpp" +// #include "autoptr.hpp" #include "sort.hpp" #include "stack.hpp" #include "mystring.hpp"