mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Add Intel intrinsics headers
This commit is contained in:
parent
369f9740de
commit
b7bf052a4b
121 changed files with 47114 additions and 849 deletions
33
third_party/intel/xsavecintrin.internal.h
vendored
Normal file
33
third_party/intel/xsavecintrin.internal.h
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
#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 */
|
Loading…
Add table
Add a link
Reference in a new issue