]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Also allow x86 1314/head
authorNick Terrell <terrelln@fb.com>
Wed, 12 Sep 2018 19:05:32 +0000 (12:05 -0700)
committerNick Terrell <terrelln@fb.com>
Wed, 12 Sep 2018 19:05:32 +0000 (12:05 -0700)
lib/common/cpu.h

index 957f3e508660ec2e3e1ca209497e32b13de472e0..eeb428ad5f6a5d588db773993b120c3bd4e4b8bb 100644 (file)
@@ -36,7 +36,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) {
     U32 f1d = 0;
     U32 f7b = 0;
     U32 f7c = 0;
-#if defined(_MSC_VER) && defined(_M_X64)
+#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
     int reg[4];
     __cpuid((int*)reg, 0);
     {