From c7b8deeec6312e2ef6458a7d36dd4a75d50397d3 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 29 Jul 2024 20:28:54 -0400 Subject: [PATCH] reenabling avx under vs --- src/isadetection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/isadetection.c b/src/isadetection.c index d7904149b..4cc43197c 100644 --- a/src/isadetection.c +++ b/src/isadetection.c @@ -48,15 +48,15 @@ POSSIBILITY OF SUCH DAMAGE. #include #include -// Binaries produced by Visual Studio with solely AVX2 routines +// Binaries produced by Visual Studio 19.38 with solely AVX2 routines // can compile to AVX-512 thus causing crashes on non-AVX-512 systems. // This appears to affect VS 17.8 and 17.9. We disable AVX-512 and AVX2 // on these systems. It seems that ClangCL is not affected. // https://github.com/RoaringBitmap/CRoaring/pull/603 #ifndef __clang__ -#if _MSC_VER >= 1938 +#if _MSC_VER == 1938 #define ROARING_DISABLE_AVX 1 -#endif // _MSC_VER >= 1938 +#endif // _MSC_VER == 1938 #endif // __clang__ // We need portability.h to be included first, see