From: Daniel Arndt Date: Tue, 2 Apr 2019 03:22:36 +0000 (+0200) Subject: Unify intrinsics headers X-Git-Tag: v9.1.0-rc1~226^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7881%2Fhead;p=dealii.git Unify intrinsics headers --- diff --git a/include/deal.II/base/vectorization.h b/include/deal.II/base/vectorization.h index 1b8c47005c..39b374b23f 100644 --- a/include/deal.II/base/vectorization.h +++ b/include/deal.II/base/vectorization.h @@ -51,15 +51,9 @@ "Mismatch in vectorization capabilities: AVX-512F was detected during configuration of deal.II and switched on, but it is apparently not available for the file you are trying to compile at the moment. Check compilation flags controlling the instruction set, such as -march=native." #endif -#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 2 && \ - (defined(__AVX__) || defined(__AVX512F__)) // AVX, AVX-512 -# include -#elif DEAL_II_COMPILER_VECTORIZATION_LEVEL == 1 && defined(__SSE2__) // SSE2 -# include -#endif - - -#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1 && defined(__ALTIVEC__) +#if defined(_MSC_VER) +# include +#elif defined(__ALTIVEC__) # include // altivec.h defines vector, pixel, bool, but we do not use them, so undefine @@ -67,7 +61,8 @@ # undef vector # undef pixel # undef bool - +#else +# include #endif DEAL_II_NAMESPACE_OPEN