From: Cameron Cawley Date: Sun, 25 Sep 2022 20:42:36 +0000 (+0100) Subject: Use static inline in x86_features.c X-Git-Tag: 2.1.0-beta1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=582a2b5528ce8c259f77464b262e30a48ba1ed97;p=thirdparty%2Fzlib-ng.git Use static inline in x86_features.c --- diff --git a/arch/x86/x86_features.c b/arch/x86/x86_features.c index b8ab69cef..0de834994 100644 --- a/arch/x86/x86_features.c +++ b/arch/x86/x86_features.c @@ -31,7 +31,7 @@ Z_INTERNAL int x86_cpu_has_tzcnt; Z_INTERNAL int x86_cpu_has_os_save_ymm; Z_INTERNAL int x86_cpu_has_os_save_zmm; -static void cpuid(int info, unsigned* eax, unsigned* ebx, unsigned* ecx, unsigned* edx) { +static inline void cpuid(int info, unsigned* eax, unsigned* ebx, unsigned* ecx, unsigned* edx) { #ifdef _MSC_VER unsigned int registers[4]; __cpuid((int *)registers, info); @@ -45,7 +45,7 @@ static void cpuid(int info, unsigned* eax, unsigned* ebx, unsigned* ecx, unsigne #endif } -static void cpuidex(int info, int subinfo, unsigned* eax, unsigned* ebx, unsigned* ecx, unsigned* edx) { +static inline void cpuidex(int info, int subinfo, unsigned* eax, unsigned* ebx, unsigned* ecx, unsigned* edx) { #ifdef _MSC_VER unsigned int registers[4]; __cpuidex((int *)registers, info, subinfo); @@ -59,7 +59,7 @@ static void cpuidex(int info, int subinfo, unsigned* eax, unsigned* ebx, unsigne #endif } -static uint64_t xgetbv(unsigned int xcr) { +static inline uint64_t xgetbv(unsigned int xcr) { #ifdef _MSC_VER return _xgetbv(xcr); #else