Skip to content

Commit 0040148

Browse files
authored
Fix missing braces in support_avx()
1 parent 21c0f2a commit 0040148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpuid_x86.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ int support_avx2(){
216216
int eax, ebx, ecx=0, edx;
217217
int ret=0;
218218

219-
if (!support_avx)
219+
if (!support_avx())
220220
return 0;
221221
cpuid(7, &eax, &ebx, &ecx, &edx);
222222
if((ebx & (1<<7)) != 0)
@@ -232,7 +232,7 @@ int support_avx512(){
232232
int eax, ebx, ecx, edx;
233233
int ret=0;
234234

235-
if (!support_avx)
235+
if (!support_avx())
236236
return 0;
237237
cpuid(7, &eax, &ebx, &ecx, &edx);
238238
if((ebx & 32) != 32){

0 commit comments

Comments
 (0)