]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
cpuid for msvc
authorMat Berchtold <mberchtold@gmail.com>
Thu, 29 Oct 2015 14:38:02 +0000 (15:38 +0100)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Mon, 30 Jan 2017 09:52:33 +0000 (10:52 +0100)
arch/x86/x86.c

index c932627f163fb617b8576914e8049c2dd2bc0e1c..c7302412ddfa8af67da8d75db54285b836dce3a5 100644 (file)
 
 #include "x86.h"
 
-ZLIB_INTERNAL int x86_cpu_has_sse2;
-ZLIB_INTERNAL int x86_cpu_has_sse42;
-ZLIB_INTERNAL int x86_cpu_has_pclmulqdq;
-
 #ifdef _MSC_VER
 #include <intrin.h>
 #else
@@ -21,6 +17,10 @@ ZLIB_INTERNAL int x86_cpu_has_pclmulqdq;
 #include <cpuid.h>
 #endif
 
+ZLIB_INTERNAL int x86_cpu_has_sse2;
+ZLIB_INTERNAL int x86_cpu_has_sse42;
+ZLIB_INTERNAL int x86_cpu_has_pclmulqdq;
+
 static void cpuid(int info, unsigned* eax, unsigned* ebx, unsigned* ecx, unsigned* edx) {
 #ifdef _MSC_VER
        unsigned int registers[4];