File tree Expand file tree Collapse file tree 4 files changed +287
-226
lines changed Expand file tree Collapse file tree 4 files changed +287
-226
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_X86COMPILER_H_
2
2
#define COSMOPOLITAN_LIBC_NEXGEN32E_X86COMPILER_H_
3
+ #ifdef __x86_64__
3
4
4
5
/**
5
6
* @fileoverview x86 cpu feature compile-time requirement detection.
24
25
#define _X86_CC_AVX2 0
25
26
#endif
26
27
28
+ #ifdef __AVXVNNI__
29
+ #define _X86_CC_AVXVNNI 1
30
+ #else
31
+ #define _X86_CC_AVXVNNI 0
32
+ #endif
33
+
34
+ #ifdef __AVX512F__
35
+ #define _X86_CC_AVX512F 1
36
+ #else
37
+ #define _X86_CC_AVX512F 0
38
+ #endif
39
+
40
+ #ifdef __AVX512BF16__
41
+ #define _X86_CC_AVX512BF16 1
42
+ #else
43
+ #define _X86_CC_AVX512BF16 0
44
+ #endif
45
+
46
+ #ifdef __AVX512VBMI__
47
+ #define _X86_CC_AVX512VBMI 1
48
+ #else
49
+ #define _X86_CC_AVX512VBMI 0
50
+ #endif
51
+
52
+ #ifdef __AVX512VNNI__
53
+ #define _X86_CC_AVX512VNNI 1
54
+ #else
55
+ #define _X86_CC_AVX512VNNI 0
56
+ #endif
57
+
58
+ #ifdef __AVX5124VNNIW__
59
+ #define _X86_CC_AVX5124VNNIW 1
60
+ #else
61
+ #define _X86_CC_AVX5124VNNIW 0
62
+ #endif
63
+
27
64
#ifdef __ABM__
28
65
#define _X86_CC_ABM 1
29
66
#else
138
175
#define _X86_CC_RDPID 0
139
176
#endif
140
177
178
+ #endif /* __x86_64__ */
141
179
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_X86COMPILER_H_ */
You can’t perform that action at this time.
0 commit comments