Skip to content

Commit

Permalink
__AVX512__ macro does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Apr 7, 2024
1 parent 758de45 commit 2231348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/primesieve/intrinsics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ inline uint64_t popcnt64(uint64_t x)

// On x64 CPUs:
// GCC & Clang enable TZCNT with -mbmi.
// MSVC enables TZCNT with /arch:AVX2 or /arch:AVX512.
// MSVC enables TZCNT with /arch:AVX2 or later.
#if defined(__BMI__) || \
(defined(_MSC_VER) && (defined(__AVX2__) || defined(__AVX512__)))
(defined(_MSC_VER) && defined(__AVX2__))
#define HAS_TZCNT
#endif

Expand Down
1 change: 0 additions & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ void cpuInfo()
defined(__i386__) || \
defined(_M_X64) || \
defined(_M_IX86) || \
defined(__AVX512__) || \
defined(__AVX512F__)

if (cpu.hasAVX512())
Expand Down

0 comments on commit 2231348

Please sign in to comment.