21 #if !defined(__TBB_machine_H) || defined(__TBB_machine_linux_ia64_H) 22 #error Do not #include this internal file directly; use public TBB headers instead. 25 #define __TBB_machine_linux_ia64_H 28 #include <ia64intrin.h> 30 #define __TBB_WORDSIZE 8 31 #define __TBB_ENDIANNESS __TBB_ENDIAN_LITTLE 34 #define __TBB_compiler_fence() 35 #define __TBB_control_consistency_helper() __TBB_compiler_fence() 36 #define __TBB_acquire_consistency_helper() 37 #define __TBB_release_consistency_helper() 38 #define __TBB_full_memory_fence() __mf() 40 #define __TBB_compiler_fence() __asm__ __volatile__("": : :"memory") 41 #define __TBB_control_consistency_helper() __TBB_compiler_fence() 44 #define __TBB_acquire_consistency_helper() __TBB_compiler_fence() 45 #define __TBB_release_consistency_helper() __TBB_compiler_fence() 46 #define __TBB_full_memory_fence() __asm__ __volatile__("mf": : :"memory") 53 int8_t __TBB_machine_fetchadd1__TBB_full_fence (
volatile void *ptr, int8_t addend);
54 int8_t __TBB_machine_fetchadd1acquire(
volatile void *ptr, int8_t addend);
55 int8_t __TBB_machine_fetchadd1release(
volatile void *ptr, int8_t addend);
57 int16_t __TBB_machine_fetchadd2__TBB_full_fence (
volatile void *ptr, int16_t addend);
58 int16_t __TBB_machine_fetchadd2acquire(
volatile void *ptr, int16_t addend);
59 int16_t __TBB_machine_fetchadd2release(
volatile void *ptr, int16_t addend);
61 int32_t __TBB_machine_fetchadd4__TBB_full_fence (
volatile void *ptr, int32_t value);
62 int32_t __TBB_machine_fetchadd4acquire(
volatile void *ptr, int32_t addend);
63 int32_t __TBB_machine_fetchadd4release(
volatile void *ptr, int32_t addend);
65 int64_t __TBB_machine_fetchadd8__TBB_full_fence (
volatile void *ptr, int64_t value);
66 int64_t __TBB_machine_fetchadd8acquire(
volatile void *ptr, int64_t addend);
67 int64_t __TBB_machine_fetchadd8release(
volatile void *ptr, int64_t addend);
69 int8_t __TBB_machine_fetchstore1__TBB_full_fence (
volatile void *ptr, int8_t value);
70 int8_t __TBB_machine_fetchstore1acquire(
volatile void *ptr, int8_t value);
71 int8_t __TBB_machine_fetchstore1release(
volatile void *ptr, int8_t value);
73 int16_t __TBB_machine_fetchstore2__TBB_full_fence (
volatile void *ptr, int16_t value);
74 int16_t __TBB_machine_fetchstore2acquire(
volatile void *ptr, int16_t value);
75 int16_t __TBB_machine_fetchstore2release(
volatile void *ptr, int16_t value);
77 int32_t __TBB_machine_fetchstore4__TBB_full_fence (
volatile void *ptr, int32_t value);
78 int32_t __TBB_machine_fetchstore4acquire(
volatile void *ptr, int32_t value);
79 int32_t __TBB_machine_fetchstore4release(
volatile void *ptr, int32_t value);
81 int64_t __TBB_machine_fetchstore8__TBB_full_fence (
volatile void *ptr, int64_t value);
82 int64_t __TBB_machine_fetchstore8acquire(
volatile void *ptr, int64_t value);
83 int64_t __TBB_machine_fetchstore8release(
volatile void *ptr, int64_t value);
85 int8_t __TBB_machine_cmpswp1__TBB_full_fence (
volatile void *ptr, int8_t value, int8_t comparand);
86 int8_t __TBB_machine_cmpswp1acquire(
volatile void *ptr, int8_t value, int8_t comparand);
87 int8_t __TBB_machine_cmpswp1release(
volatile void *ptr, int8_t value, int8_t comparand);
89 int16_t __TBB_machine_cmpswp2__TBB_full_fence (
volatile void *ptr, int16_t value, int16_t comparand);
90 int16_t __TBB_machine_cmpswp2acquire(
volatile void *ptr, int16_t value, int16_t comparand);
91 int16_t __TBB_machine_cmpswp2release(
volatile void *ptr, int16_t value, int16_t comparand);
93 int32_t __TBB_machine_cmpswp4__TBB_full_fence (
volatile void *ptr, int32_t value, int32_t comparand);
94 int32_t __TBB_machine_cmpswp4acquire(
volatile void *ptr, int32_t value, int32_t comparand);
95 int32_t __TBB_machine_cmpswp4release(
volatile void *ptr, int32_t value, int32_t comparand);
97 int64_t __TBB_machine_cmpswp8__TBB_full_fence (
volatile void *ptr, int64_t value, int64_t comparand);
98 int64_t __TBB_machine_cmpswp8acquire(
volatile void *ptr, int64_t value, int64_t comparand);
99 int64_t __TBB_machine_cmpswp8release(
volatile void *ptr, int64_t value, int64_t comparand);
101 int64_t __TBB_machine_lg(uint64_t value);
102 void __TBB_machine_pause(int32_t delay);
103 bool __TBB_machine_trylockbyte(
volatile unsigned char &ptr );
104 int64_t __TBB_machine_lockbyte(
volatile unsigned char &ptr );
107 void* __TBB_get_bsp();
109 int32_t __TBB_machine_load1_relaxed(
const void *ptr);
110 int32_t __TBB_machine_load2_relaxed(
const void *ptr);
111 int32_t __TBB_machine_load4_relaxed(
const void *ptr);
112 int64_t __TBB_machine_load8_relaxed(
const void *ptr);
114 void __TBB_machine_store1_relaxed(
void *ptr, int32_t value);
115 void __TBB_machine_store2_relaxed(
void *ptr, int32_t value);
116 void __TBB_machine_store4_relaxed(
void *ptr, int32_t value);
117 void __TBB_machine_store8_relaxed(
void *ptr, int64_t value);
121 #define __TBB_machine_fetchadd1full_fence __TBB_machine_fetchadd1__TBB_full_fence 122 #define __TBB_machine_fetchadd2full_fence __TBB_machine_fetchadd2__TBB_full_fence 123 #define __TBB_machine_fetchadd4full_fence __TBB_machine_fetchadd4__TBB_full_fence 124 #define __TBB_machine_fetchadd8full_fence __TBB_machine_fetchadd8__TBB_full_fence 125 #define __TBB_machine_fetchstore1full_fence __TBB_machine_fetchstore1__TBB_full_fence 126 #define __TBB_machine_fetchstore2full_fence __TBB_machine_fetchstore2__TBB_full_fence 127 #define __TBB_machine_fetchstore4full_fence __TBB_machine_fetchstore4__TBB_full_fence 128 #define __TBB_machine_fetchstore8full_fence __TBB_machine_fetchstore8__TBB_full_fence 129 #define __TBB_machine_cmpswp1full_fence __TBB_machine_cmpswp1__TBB_full_fence 130 #define __TBB_machine_cmpswp2full_fence __TBB_machine_cmpswp2__TBB_full_fence 131 #define __TBB_machine_cmpswp4full_fence __TBB_machine_cmpswp4__TBB_full_fence 132 #define __TBB_machine_cmpswp8full_fence __TBB_machine_cmpswp8__TBB_full_fence 137 #define __TBB_machine_fetchadd1relaxed __TBB_machine_fetchadd1acquire 138 #define __TBB_machine_fetchadd2relaxed __TBB_machine_fetchadd2acquire 139 #define __TBB_machine_fetchadd4relaxed __TBB_machine_fetchadd4acquire 140 #define __TBB_machine_fetchadd8relaxed __TBB_machine_fetchadd8acquire 141 #define __TBB_machine_fetchstore1relaxed __TBB_machine_fetchstore1acquire 142 #define __TBB_machine_fetchstore2relaxed __TBB_machine_fetchstore2acquire 143 #define __TBB_machine_fetchstore4relaxed __TBB_machine_fetchstore4acquire 144 #define __TBB_machine_fetchstore8relaxed __TBB_machine_fetchstore8acquire 145 #define __TBB_machine_cmpswp1relaxed __TBB_machine_cmpswp1acquire 146 #define __TBB_machine_cmpswp2relaxed __TBB_machine_cmpswp2acquire 147 #define __TBB_machine_cmpswp4relaxed __TBB_machine_cmpswp4acquire 148 #define __TBB_machine_cmpswp8relaxed __TBB_machine_cmpswp8acquire 150 #define __TBB_MACHINE_DEFINE_ATOMICS(S,V) \ 151 template <typename T> \ 152 struct machine_load_store_relaxed<T,S> { \ 153 static inline T load ( const T& location ) { \ 154 return (T)__TBB_machine_load##S##_relaxed(&location); \ 156 static inline void store ( T& location, T value ) { \ 157 __TBB_machine_store##S##_relaxed(&location, (V)value); \ 163 __TBB_MACHINE_DEFINE_ATOMICS(1,int8_t);
164 __TBB_MACHINE_DEFINE_ATOMICS(2,int16_t);
165 __TBB_MACHINE_DEFINE_ATOMICS(4,int32_t);
166 __TBB_MACHINE_DEFINE_ATOMICS(8,int64_t);
169 #undef __TBB_MACHINE_DEFINE_ATOMICS 171 #define __TBB_USE_FENCED_ATOMICS 1 172 #define __TBB_USE_GENERIC_HALF_FENCED_LOAD_STORE 1 173 #define __TBB_USE_GENERIC_SEQUENTIAL_CONSISTENCY_LOAD_STORE 1 176 #define __TBB_TryLockByte(P) __TBB_machine_trylockbyte(P) 177 #define __TBB_LockByte(P) __TBB_machine_lockbyte(P) 180 #define __TBB_Pause(V) __TBB_machine_pause(V) 181 #define __TBB_Log2(V) __TBB_machine_lg(V) Definition: _flow_graph_async_msg_impl.h:32
The namespace tbb contains all components of the library.
Definition: parallel_for.h:44