Merge pull request #1314 from terrelln/cpuid

[libzstd] Fix cpu for MSFT ARM
This commit is contained in:
Yann Collet 2018-09-12 13:30:16 -07:00 committed by GitHub
commit 7800d0235c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) || defined(_M_IX86))
int reg[4];
__cpuid((int*)reg, 0);
{