Fix missing braces in support_avx()
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Mon, 14 Jan 2019 21:38:32 +0000 (22:38 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Jan 2019 21:38:32 +0000 (22:38 +0100)
cpuid_x86.c

index 377267f..74cc665 100644 (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){