Browse Source

Fix missing braces in support_av() call

tags/v0.3.6^2
Martin Kroeker GitHub 7 years ago
parent
commit
dbc9a060ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      driver/others/dynamic.c

+ 2
- 2
driver/others/dynamic.c View File

@@ -309,7 +309,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)
@@ -325,7 +325,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 & (1<<7)) != 1){


Loading…
Cancel
Save