Merge pull request #471 from Cyan4973/fixcli

fix x86/x64 vector detection
This commit is contained in:
Yann Collet 2020-11-12 16:29:34 -08:00 committed by GitHub
commit 0a810b9e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,6 @@ static int XXH_featureTest(void)
#if XXH_DISPATCH_AVX2 || XXH_DISPATCH_AVX512 #if XXH_DISPATCH_AVX2 || XXH_DISPATCH_AVX512
xxh_u64 xgetbv_val; xxh_u64 xgetbv_val;
#endif #endif
#if XXH_DISPATCH_SCALAR
#if defined(__GNUC__) && defined(__i386__) #if defined(__GNUC__) && defined(__i386__)
xxh_u32 cpuid_supported; xxh_u32 cpuid_supported;
__asm__( __asm__(
@ -388,7 +387,6 @@ static int XXH_featureTest(void)
return best; return best;
XXH_debugPrint("SSE2 support detected."); XXH_debugPrint("SSE2 support detected.");
#endif /* XXH_DISPATCH_SCALAR */
best = XXH_SSE2; best = XXH_SSE2;
#if XXH_DISPATCH_AVX2 || XXH_DISPATCH_AVX512 #if XXH_DISPATCH_AVX2 || XXH_DISPATCH_AVX512