File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 99
99
#if defined(SIMD_SSE_INSTRUCTIONS_DETECTION_GUARD ) \
100
100
|| defined(SIMD_AVX_INSTRUCTIONS_DETECTION_GUARD )
101
101
/* Indicate that cpuid should be called once with EAX=1 and ECX=0. */
102
+ # ifndef HAS_CPUID_SUPPORT
103
+ # error "HAS_CPUID_SUPPORT must be set"
104
+ # endif
102
105
# define SHOULD_PARSE_CPUID_L1
103
106
#endif
104
107
105
108
#if defined(SIMD_AVX2_INSTRUCTIONS_DETECTION_GUARD ) \
106
109
|| defined(SIMD_AVX512_INSTRUCTIONS_DETECTION_GUARD )
107
110
/* Indicate that cpuid should be called once with EAX=7 and ECX=0. */
111
+ # ifndef HAS_CPUID_SUPPORT
112
+ # error "HAS_CPUID_SUPPORT must be set"
113
+ # endif
108
114
# define SHOULD_PARSE_CPUID_L7
109
115
# define SHOULD_PARSE_CPUID_L7S0
110
116
#endif
111
117
112
118
#if defined(SIMD_AVX_INSTRUCTIONS_DETECTION_GUARD )
113
119
/* Indicate that cpuid should be called once with EAX=7 and ECX=1. */
120
+ # ifndef HAS_CPUID_SUPPORT
121
+ # error "HAS_CPUID_SUPPORT must be set"
122
+ # endif
114
123
# define SHOULD_PARSE_CPUID_L7
115
124
# define SHOULD_PARSE_CPUID_L7S1
116
125
#endif
117
126
118
- #undef SHOULD_PARSE_CPUID_L7
119
- #undef SHOULD_PARSE_CPUID_L7S0
120
- #undef SHOULD_PARSE_CPUID_L7S1
121
-
122
127
#if defined(SHOULD_PARSE_CPUID_L7S0 ) && !defined(SHOULD_PARSE_CPUID_L7 )
123
128
#error "SHOULD_PARSE_CPUID_L7S0 requires SHOULD_PARSE_CPUID_L7"
124
129
#endif
You can’t perform that action at this time.
0 commit comments