From a3ac409add6f2d32fbc56f9e66f4cb0d6d9bb2fa Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 28 Jul 2023 11:55:26 +0200 Subject: [PATCH] Consider SIMD width 2 as "native" on all platforms --- libsrc/core/simd_generic.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libsrc/core/simd_generic.hpp b/libsrc/core/simd_generic.hpp index a54aa4e9..5e08b860 100644 --- a/libsrc/core/simd_generic.hpp +++ b/libsrc/core/simd_generic.hpp @@ -18,16 +18,10 @@ namespace ngcore { #if defined __AVX512F__ #define NETGEN_DEFAULT_SIMD_SIZE 8 - #define NETGEN_NATIVE_SIMD_SIZE 8 #elif defined __AVX__ #define NETGEN_DEFAULT_SIMD_SIZE 4 - #define NETGEN_NATIVE_SIMD_SIZE 4 -#elif defined NETGEN_ARCH_AMD64 - #define NETGEN_DEFAULT_SIMD_SIZE 2 - #define NETGEN_NATIVE_SIMD_SIZE 2 #else #define NETGEN_DEFAULT_SIMD_SIZE 2 - #define NETGEN_NATIVE_SIMD_SIZE 1 #endif constexpr int GetDefaultSIMDSize() { @@ -36,9 +30,7 @@ namespace ngcore constexpr bool IsNativeSIMDSize(int n) { if(n==1) return true; -#if defined NETGEN_ARCH_AMD64 || defined __SSE__ || defined __aarch64__ if(n==2) return true; -#endif #if defined __AVX__ if(n==4) return true; #endif