mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-14 10:18:02 +00:00
29 lines
666 B
C
29 lines
666 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__ */
|
|
|
|
__funline void _xsavec(void *__P, long long __M) {
|
|
__builtin_ia32_xsavec(__P, __M);
|
|
}
|
|
|
|
#ifdef __x86_64__
|
|
__funline void _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 */
|