Skip to content

Commit dbc9a06

Browse files
authored
Fix missing braces in support_av() call
1 parent 0040148 commit dbc9a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/others/dynamic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ int support_avx2(){
309309
int eax, ebx, ecx=0, edx;
310310
int ret=0;
311311

312-
if (!support_avx)
312+
if (!support_avx())
313313
return 0;
314314
cpuid(7, &eax, &ebx, &ecx, &edx);
315315
if((ebx & (1<<7)) != 0)
@@ -325,7 +325,7 @@ int support_avx512(){
325325
int eax, ebx, ecx, edx;
326326
int ret=0;
327327

328-
if (!support_avx)
328+
if (!support_avx())
329329
return 0;
330330
cpuid(7, &eax, &ebx, &ecx, &edx);
331331
if((ebx & (1<<7)) != 1){

0 commit comments

Comments
 (0)