9 #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H
10 #error "Never use <waitpkgintrin.h> directly; include <x86intrin.h> instead."
13 #ifndef __WAITPKGINTRIN_H
14 #define __WAITPKGINTRIN_H
17 #define __DEFAULT_FN_ATTRS \
18 __attribute__((__always_inline__, __nodebug__, __target__("waitpkg")))
23 __builtin_ia32_umonitor (__address);
27 _umwait (
unsigned int __control,
unsigned long long __counter)
29 return __builtin_ia32_umwait (__control,
30 (
unsigned int)(__counter >> 32), (
unsigned int)__counter);
34 _tpause (
unsigned int __control,
unsigned long long __counter)
36 return __builtin_ia32_tpause (__control,
37 (
unsigned int)(__counter >> 32), (
unsigned int)__counter);
40 #undef __DEFAULT_FN_ATTRS
static __inline__ void __DEFAULT_FN_ATTRS _umonitor(void *__address)
static __inline__ unsigned char __DEFAULT_FN_ATTRS _tpause(unsigned int __control, unsigned long long __counter)
static __inline__ unsigned char __DEFAULT_FN_ATTRS _umwait(unsigned int __control, unsigned long long __counter)
#define __DEFAULT_FN_ATTRS