118118 *
119119 * If CPUID is not supported, registers are set to 0.
120120 */
121- static inline void
121+ static void
122122get_cpuid_info (uint32_t level /* input eax */ ,
123123 uint32_t count /* input ecx */ ,
124124 CPUID_REG * eax , CPUID_REG * ebx , CPUID_REG * ecx , CPUID_REG * edx )
@@ -133,7 +133,7 @@ get_cpuid_info(uint32_t level /* input eax */,
133133#endif
134134}
135135
136- static inline uint64_t
136+ static uint64_t
137137get_xgetbv (uint32_t index )
138138{
139139 assert (index == 0 ); // only XCR0 is supported for now
@@ -150,7 +150,7 @@ get_xgetbv(uint32_t index)
150150}
151151
152152/* Highest Function Parameter and Manufacturer ID (LEAF=0, SUBLEAF=0). */
153- static inline uint32_t
153+ static uint32_t
154154detect_cpuid_maxleaf (void )
155155{
156156 CPUID_REG maxleaf = 0 , ebx = 0 , ecx = 0 , edx = 0 ;
@@ -159,7 +159,7 @@ detect_cpuid_maxleaf(void)
159159}
160160
161161/* Processor Info and Feature Bits (LEAF=1, SUBLEAF=0). */
162- static inline void
162+ static void
163163detect_cpuid_features (_Py_cpuid_features * flags , CPUID_REG ecx , CPUID_REG edx )
164164{
165165 assert (flags -> maxleaf >= 1 );
@@ -203,7 +203,7 @@ detect_cpuid_features(_Py_cpuid_features *flags, CPUID_REG ecx, CPUID_REG edx)
203203}
204204
205205/* Extended Feature Bits (LEAF=7, SUBLEAF=0). */
206- static inline void
206+ static void
207207detect_cpuid_extended_features_L7S0 (_Py_cpuid_features * flags ,
208208 CPUID_REG ebx , CPUID_REG ecx , CPUID_REG edx )
209209{
@@ -277,7 +277,7 @@ detect_cpuid_extended_features_L7S0(_Py_cpuid_features *flags,
277277}
278278
279279/* Extended Feature Bits (LEAF=7, SUBLEAF=1). */
280- static inline void
280+ static void
281281detect_cpuid_extended_features_L7S1 (_Py_cpuid_features * flags ,
282282 CPUID_REG eax ,
283283 CPUID_REG ebx ,
@@ -308,7 +308,7 @@ detect_cpuid_extended_features_L7S1(_Py_cpuid_features *flags,
308308#endif // SIMD_AVX_INSTRUCTIONS_DETECTION_GUARD
309309}
310310
311- static inline void
311+ static void
312312detect_cpuid_xsave_state (_Py_cpuid_features * flags )
313313{
314314 // Keep the ordering and newlines as they are declared in the structure.
@@ -323,7 +323,7 @@ detect_cpuid_xsave_state(_Py_cpuid_features *flags)
323323#endif
324324}
325325
326- static inline void
326+ static void
327327cpuid_features_finalize (_Py_cpuid_features * flags )
328328{
329329 assert (flags -> ready == 0 );
@@ -334,7 +334,7 @@ cpuid_features_finalize(_Py_cpuid_features *flags)
334334 flags -> ready = 1 ;
335335}
336336
337- static inline int
337+ static int
338338cpuid_features_validate (const _Py_cpuid_features * flags )
339339{
340340 if (flags -> ready != 1 ) {
@@ -485,7 +485,7 @@ _Py_cpuid_match_features(const _Py_cpuid_features *actual,
485485#undef CPUID_APPLY_MACRO
486486
487487#ifdef SHOULD_PARSE_CPUID_L1
488- static inline void
488+ static void
489489cpuid_detect_l1_features (_Py_cpuid_features * flags )
490490{
491491 if (flags -> maxleaf >= 1 ) {
@@ -502,7 +502,7 @@ cpuid_detect_l1_features(_Py_cpuid_features *flags)
502502#endif
503503
504504#ifdef SHOULD_PARSE_CPUID_L7S0
505- static inline void
505+ static void
506506cpuid_detect_l7s0_features (_Py_cpuid_features * flags )
507507{
508508 assert (flags -> maxleaf >= 7 );
@@ -515,7 +515,7 @@ cpuid_detect_l7s0_features(_Py_cpuid_features *flags)
515515#endif
516516
517517#ifdef SHOULD_PARSE_CPUID_L7S1
518- static inline void
518+ static void
519519cpuid_detect_l7s1_features (_Py_cpuid_features * flags )
520520{
521521 assert (flags -> maxleaf >= 7 );
@@ -528,7 +528,7 @@ cpuid_detect_l7s1_features(_Py_cpuid_features *flags)
528528#endif
529529
530530#ifdef SHOULD_PARSE_CPUID_L7
531- static inline void
531+ static void
532532cpuid_detect_l7_features (_Py_cpuid_features * flags )
533533{
534534 if (flags -> maxleaf >= 7 ) {
0 commit comments