Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Jun 26, 2024
1 parent c7d35b0 commit 40a2363
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libpopcnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,14 @@
/* MSVC compatible compilers (Windows) */
#if defined(X86_OR_X64) && \
defined(_MSC_VER)
/* clang-cl (LLVM 10 from 2020) requires /arch:AVX2 or
* /arch:AVX512 to enable vector instructions */
/*
* There is an LLVM/Clang bug on Windows where function targets
* for AVX2 and AVX512 fail to compile unless the user compiles
* using the options /arch:AVX2 and /arch:AVX512.
* All Clang versions <= 18.0 (from 2024) are affected by this bug.
* However, I expect this bug will be fixed in near future:
* https://github.com/llvm/llvm-project/issues/53520
*/
#if defined(__clang__)
#if defined(__AVX2__)
#define HAVE_AVX2
Expand Down

0 comments on commit 40a2363

Please sign in to comment.