blob: deefa5e1105d720e8eea00b416632072a9f33ddf (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* Check if the OS supports executing AVX512F instructions. */
static int
avx512f_os_support (void)
{
unsigned int eax, edx;
__asm__ ("xgetbv" : "=a" (eax), "=d" (edx) : "c" (0));
return (eax & 230) == 230;
}
|