Fix missing braces in support_avx()

This commit is contained in:
Martin Kroeker 2019-01-14 22:38:32 +01:00 committed by GitHub
parent 21c0f2af7b
commit 00401489c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ int support_avx2(){
int eax, ebx, ecx=0, edx;
int ret=0;
if (!support_avx)
if (!support_avx())
return 0;
cpuid(7, &eax, &ebx, &ecx, &edx);
if((ebx & (1<<7)) != 0)
@ -232,7 +232,7 @@ int support_avx512(){
int eax, ebx, ecx, edx;
int ret=0;
if (!support_avx)
if (!support_avx())
return 0;
cpuid(7, &eax, &ebx, &ecx, &edx);
if((ebx & 32) != 32){