blob: deefa5e1105d720e8eea00b416632072a9f33ddf [file] [log] [blame]
/* 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;
}