Skip to content

Commit 3b495f6

Browse files
committed
only check maxleaf
1 parent 8e5b2f0 commit 3b495f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Python/cpuinfo.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
# undef HAS_XGETBV_SUPPORT
2626
#endif
2727

28-
#undef HAS_CPUID_SUPPORT
2928
#undef HAS_XGETBV_SUPPORT
3029

3130
// Below, we declare macros for guarding the detection of SSE, AVX/AVX2
@@ -116,6 +115,11 @@
116115
# define SHOULD_PARSE_CPUID_L7S1
117116
#endif
118117

118+
#undef SHOULD_PARSE_CPUID_L1
119+
#undef SHOULD_PARSE_CPUID_L7
120+
#undef SHOULD_PARSE_CPUID_L7S0
121+
#undef SHOULD_PARSE_CPUID_L7S1
122+
119123
#if defined(SHOULD_PARSE_CPUID_L7S0) && !defined(SHOULD_PARSE_CPUID_L7)
120124
#error "SHOULD_PARSE_CPUID_L7S0 requires SHOULD_PARSE_CPUID_L7"
121125
#endif

0 commit comments

Comments
 (0)