File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 102
102
#define HAVE_AVX512
103
103
#endif
104
104
105
- /* Windows: MSVC compatible compilers */
105
+ /* MSVC compatible compilers (Windows) */
106
106
#if defined(_MSC_VER ) && \
107
107
defined(HAVE_CPUID )
108
108
/* clang-cl (LLVM 10 from 2020) requires /arch:AVX2 or
117
117
#endif
118
118
/* MSVC 2017 or later does not require
119
119
* /arch:AVX2 or /arch:AVX512 */
120
- #elif ( _MSC_VER >= 1910 )
120
+ #elif _MSC_VER >= 1910
121
121
#define HAVE_AVX2
122
122
#define HAVE_AVX512
123
123
#endif
124
- #else /* Unix-like OSes */
124
+ #else /* Clang ( Unix-like OSes) */
125
125
#if defined(HAVE_CPUID ) && \
126
126
CLANG_PREREQ (3 , 8 ) && \
127
127
__has_attribute (target ) && \
128
- (!defined(_MSC_VER ) || defined(__AVX2__ )) && \
129
128
(!defined(__apple_build_version__ ) || __apple_build_version__ >= 8000000 )
130
129
#define HAVE_AVX2
131
130
#define HAVE_AVX512
You can’t perform that action at this time.
0 commit comments