cosmopolitan/third_party/intel/movdirintrin.internal.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.3 KiB
C
Raw Normal View History

#if defined(__x86_64__) && !(__ASSEMBLER__ + __LINKER__ + 0)
#ifndef _X86GPRINTRIN_H_INCLUDED
# error "Never use <movdirintrin.h> directly; include <x86gprintrin.h> instead."
2023-04-27 09:56:41 +00:00
#endif
#ifndef _MOVDIRINTRIN_H_INCLUDED
#define _MOVDIRINTRIN_H_INCLUDED
#ifndef __MOVDIRI__
#pragma GCC push_options
#pragma GCC target ("movdiri")
2023-04-27 09:56:41 +00:00
#define __DISABLE_MOVDIRI__
#endif
extern __inline void
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
_directstoreu_u32 (void * __P, unsigned int __A)
{
__builtin_ia32_directstoreu_u32 ((unsigned int *)__P, __A);
2023-04-27 09:56:41 +00:00
}
#ifdef __x86_64__
extern __inline void
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
_directstoreu_u64 (void * __P, unsigned long long __A)
{
__builtin_ia32_directstoreu_u64 ((unsigned long long *)__P, __A);
2023-04-27 09:56:41 +00:00
}
#endif
#ifdef __DISABLE_MOVDIRI__
#undef __DISABLE_MOVDIRI__
#pragma GCC pop_options
#endif
2023-04-27 09:56:41 +00:00
#ifndef __MOVDIR64B__
#pragma GCC push_options
#pragma GCC target ("movdir64b")
2023-04-27 09:56:41 +00:00
#define __DISABLE_MOVDIR64B__
#endif
extern __inline void
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
_movdir64b (void * __P, const void * __Q)
{
__builtin_ia32_movdir64b (__P, __Q);
2023-04-27 09:56:41 +00:00
}
#ifdef __DISABLE_MOVDIR64B__
#undef __DISABLE_MOVDIR64B__
#pragma GCC pop_options
#endif
#endif
#endif