Skip to content

Commit 3bdc63c

Browse files
authored
allow on combinations of GHC 8.2 & Windows (#407)
* finer GNU C version check
1 parent 112f45b commit 3bdc63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cbits/measure_off.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#if defined(__x86_64__) && defined(COMPILER_SUPPORTS_AVX512)
3939
bool has_avx512_vl_bw() {
40-
#if __GNUC__ >= 6 || defined(__clang_major__)
40+
#if (__GNUC__ >= 7 || __GNUC__ == 6 && __GNUC_MINOR__ >= 3) || defined(__clang_major__)
4141
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
4242
__get_cpuid_count(7, 0, &eax, &ebx, &ecx, &edx);
4343
// https://en.wikipedia.org/wiki/CPUID#EAX=7,_ECX=0:_Extended_Features

0 commit comments

Comments
 (0)