11 #error "Never use <rtmintrin.h> directly; include <immintrin.h> instead."
17 #define _XBEGIN_STARTED (~0u)
18 #define _XABORT_EXPLICIT (1 << 0)
19 #define _XABORT_RETRY (1 << 1)
20 #define _XABORT_CONFLICT (1 << 2)
21 #define _XABORT_CAPACITY (1 << 3)
22 #define _XABORT_DEBUG (1 << 4)
23 #define _XABORT_NESTED (1 << 5)
24 #define _XABORT_CODE(x) (((x) >> 24) & 0xFF)
27 #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("rtm")))
32 return __builtin_ia32_xbegin();
38 __builtin_ia32_xend();
41 #define _xabort(imm) __builtin_ia32_xabort((imm))
43 #undef __DEFAULT_FN_ATTRS
#define __DEFAULT_FN_ATTRS
static __inline__ void __DEFAULT_FN_ATTRS _xend(void)
static __inline__ unsigned int __DEFAULT_FN_ATTRS _xbegin(void)