Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/stabilize-R33-4982.B
/
.
/
gcc
/
testsuite
/
gcc.target
/
i386
/
avx-os-support.h
blob: 21d332f7d3d8e018e9d4969ec72584456b56c23e [
file
] [
log
] [
blame
]
/* Check if the OS supports executing AVX instructions. */
static
int
avx_os_support
(
void
)
{
unsigned
int
eax
,
edx
;
__asm__
(
"xgetbv"
:
"=a"
(
eax
),
"=d"
(
edx
)
:
"c"
(
0
));
return
(
eax
&
6
)
==
6
;
}