From: Timo Heister Date: Sun, 27 Aug 2017 22:33:20 +0000 (-0400) Subject: MSVC doesn't like 'not' in preprocessor X-Git-Tag: v9.0.0-rc1~1158^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8da2d3948a27136b41b408c3319a647423067847;p=dealii.git MSVC doesn't like 'not' in preprocessor While legal (I think), using ! is more natural anyways. --- diff --git a/include/deal.II/base/vectorization.h b/include/deal.II/base/vectorization.h index 8e5e1bda7d..f68c9add59 100644 --- a/include/deal.II/base/vectorization.h +++ b/include/deal.II/base/vectorization.h @@ -39,13 +39,13 @@ // 'check_01_cpu_features.cmake', ensures that these feature are not only // present in the compilation unit but also working properly. -#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1 && not defined(__SSE2__) +#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1 && !defined(__SSE2__) #error "Mismatch in vectorization capabilities: SSE2 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 && not defined(__AVX__) +#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 2 && !defined(__AVX__) #error "Mismatch in vectorization capabilities: AVX 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 >= 3 && not defined(__AVX512F__) +#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 3 && !defined(__AVX512F__) #error "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