Query AVX2 and AVX512VL capability in x86 cpu detection

This commit is contained in:
Martin Kroeker
2019-01-05 16:58:56 +01:00
committed by GitHub
parent ae1d1f74f7
commit 0afaae4b23
3 changed files with 76 additions and 59 deletions

View File

@@ -134,7 +134,7 @@ static __inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){
"=b" (*ebx),
"=c" (*ecx),
"=d" (*edx)
: "0" (op));
: "0" (op), "c"(0));
#endif
}