Skip to content

Commit

Permalink
reenabling avx under vs (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Jul 30, 2024
1 parent e326af3 commit ac8639c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/isadetection.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ POSSIBILITY OF SUCH DAMAGE.
#include <stdint.h>
#include <stdlib.h>

// 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
Expand Down

0 comments on commit ac8639c

Please sign in to comment.