]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Use static inline in x86_features.c
authorCameron Cawley <ccawley2011@gmail.com>
Sun, 25 Sep 2022 20:42:36 +0000 (21:42 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 11 Oct 2022 10:22:24 +0000 (12:22 +0200)
arch/x86/x86_features.c

index b8ab69cefea70c9191307cdea666e402074db2be..0de8349941c76c0e52a8a3e191d0dd58e7575c8e 100644 (file)
@@ -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