[libzstd] Fix cpu for MSFT ARM

The `__cpuid()` and `__cpuidex()` intrinsics are only available
on x86 and x86_64.
dev
Nick Terrell 2018-09-12 10:35:16 -07:00
parent cf5db388f3
commit 1e0bac6a9c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) {
U32 f1d = 0;
U32 f7b = 0;
U32 f7c = 0;
#ifdef _MSC_VER
#if defined(_MSC_VER) && defined(_M_X64)
int reg[4];
__cpuid((int*)reg, 0);
{