Skip to content

Commit 5006686

Browse files
authored
Use _py prefix
1 parent f4e4f99 commit 5006686

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Include/internal/pycore_cpuinfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ extern "C" {
1414
typedef struct {
1515
bool sse, sse2, sse3, sse41, sse42, avx, avx2, avx512vbmi;
1616
bool done;
17-
} cpu_simd_flags;
17+
} _py_cpu_simd_flags;
1818

1919
extern void
20-
_Py_detect_cpu_simd_features(cpu_simd_flags *flags);
20+
_Py_detect_cpu_simd_features(_py_cpu_simd_flags *flags);
2121

2222
#ifdef __cplusplus
2323
}

Python/cpuinfo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include <stdbool.h>
1111

1212
#if defined(__x86_64__) && defined(__GNUC__)
13-
#include <cpuid.h>
13+
# include <cpuid.h>
1414
#elif defined(_M_X64)
15-
#include <intrin.h>
15+
# include <intrin.h>
1616
#endif
1717

1818
// AVX2 cannot be compiled on macOS ARM64 (yet it can be compiled on x86_64).
@@ -34,7 +34,7 @@
3434
#define ECX7_AVX512_VBMI (1 << 1) // avx512-vbmi, ECX, page 7, bit 1
3535

3636
void
37-
_Py_detect_cpu_simd_features(cpu_simd_flags *flags)
37+
_Py_detect_cpu_simd_features(_py_cpu_simd_flags *flags)
3838
{
3939
if (flags->done) {
4040
return;

0 commit comments

Comments
 (0)