mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
34 lines
828 B
C
34 lines
828 B
C
|
#if !defined _IMMINTRIN_H_INCLUDED
|
||
|
#error "Never use <xsavecintrin.h> directly; include <immintrin.h> instead."
|
||
|
#endif
|
||
|
|
||
|
#ifndef _XSAVECINTRIN_H_INCLUDED
|
||
|
#define _XSAVECINTRIN_H_INCLUDED
|
||
|
|
||
|
#ifndef __XSAVEC__
|
||
|
#pragma GCC push_options
|
||
|
#pragma GCC target("xsavec")
|
||
|
#define __DISABLE_XSAVEC__
|
||
|
#endif /* __XSAVEC__ */
|
||
|
|
||
|
extern __inline void
|
||
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||
|
_xsavec(void *__P, long long __M) {
|
||
|
__builtin_ia32_xsavec(__P, __M);
|
||
|
}
|
||
|
|
||
|
#ifdef __x86_64__
|
||
|
extern __inline void
|
||
|
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||
|
_xsavec64(void *__P, long long __M) {
|
||
|
__builtin_ia32_xsavec64(__P, __M);
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#ifdef __DISABLE_XSAVEC__
|
||
|
#undef __DISABLE_XSAVEC__
|
||
|
#pragma GCC pop_options
|
||
|
#endif /* __DISABLE_XSAVEC__ */
|
||
|
|
||
|
#endif /* _XSAVECINTRIN_H_INCLUDED */
|