23 #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H 24 #error "Never use <waitpkgintrin.h> directly; include <x86intrin.h> instead." 27 #ifndef __WAITPKGINTRIN_H 28 #define __WAITPKGINTRIN_H 31 #define __DEFAULT_FN_ATTRS \ 32 __attribute__((__always_inline__, __nodebug__, __target__("waitpkg"))) 37 __builtin_ia32_umonitor (__address);
41 _umwait (
unsigned int __control,
unsigned long long __counter)
43 return __builtin_ia32_umwait (__control,
44 (
unsigned int)(__counter >> 32), (
unsigned int)__counter);
48 _tpause (
unsigned int __control,
unsigned long long __counter)
50 return __builtin_ia32_tpause (__control,
51 (
unsigned int)(__counter >> 32), (
unsigned int)__counter);
54 #undef __DEFAULT_FN_ATTRS static __inline__ void __DEFAULT_FN_ATTRS _umonitor(void *__address)
static __inline__ unsigned char __DEFAULT_FN_ATTRS _umwait(unsigned int __control, unsigned long long __counter)
#define __DEFAULT_FN_ATTRS
static __inline__ unsigned char __DEFAULT_FN_ATTRS _tpause(unsigned int __control, unsigned long long __counter)