11#error "Never use <xsaveintrin.h> directly; include <immintrin.h> instead."
14#ifndef __XSAVEINTRIN_H
15#define __XSAVEINTRIN_H
18#define _XCR_XFEATURE_ENABLED_MASK 0
22#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("xsave")))
26 __builtin_ia32_xsave(
__p, __m);
31 __builtin_ia32_xrstor(
__p, __m);
35#define _xgetbv(A) __builtin_ia32_xgetbv((long long)(A))
36#define _xsetbv(A, B) __builtin_ia32_xsetbv((unsigned int)(A), (unsigned long long)(B))
41unsigned __int64 __cdecl
_xgetbv(
unsigned int);
42void __cdecl
_xsetbv(
unsigned int,
unsigned __int64);
50_xsave64(
void *
__p,
unsigned long long __m) {
51 __builtin_ia32_xsave64(
__p, __m);
55_xrstor64(
void *
__p,
unsigned long long __m) {
56 __builtin_ia32_xrstor64(
__p, __m);
61#undef __DEFAULT_FN_ATTRS
static __inline__ uint32_t volatile uint32_t * __p
static __inline__ void __DEFAULT_FN_ATTRS _xrstor(void *__p, unsigned long long __m)
#define __DEFAULT_FN_ATTRS
static __inline__ void __DEFAULT_FN_ATTRS _xsave(void *__p, unsigned long long __m)