Skip to content

Commit f95989c

Browse files
authored
Fix AVX512 capability test (always returning zero)
from #2322
1 parent 04226f1 commit f95989c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/dynamic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ int support_avx512(){
329329
if (!support_avx())
330330
return 0;
331331
cpuid(7, &eax, &ebx, &ecx, &edx);
332-
if((ebx & (1<<7)) != 1){
332+
if((ebx & (1<<7)) == 0){
333333
ret=0; //OS does not even support AVX2
334334
}
335335
if((ebx & (1<<31)) != 0){

0 commit comments

Comments
 (0)