8000 fix bit detection · python/cpython@6f304f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f304f2

Browse files
committed
fix bit detection
1 parent ac1b165 commit 6f304f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/cpuinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
/* Macro to mark a CPUID register function parameter as being used. */
1111
#define CPUID_REG(PARAM) PARAM
12-
/* Macro to check a CPUID register bit. */
13-
#define CPUID_CHECK_REG(REGISTER, MASK) ((REGISTER) & (MASK)) == 0 ? 0 : 1
12+
/* Macro to check one or more CPUID register bits. */
13+
#define CPUID_CHECK_REG(REG, MASK) ((((REG) & (MASK)) == (MASK)) ? 0 : 1)
1414

1515
/*
1616
* For simplicity, we only enable SIMD instructions for Intel CPUs,

0 commit comments

Comments
 (0)
0