21 #if !defined(__TBB_machine_H) || defined(__TBB_msvc_armv7_H) 22 #error Do not #include this internal file directly; use public TBB headers instead. 25 #define __TBB_msvc_armv7_H 30 #define __TBB_WORDSIZE 4 32 #define __TBB_ENDIANNESS __TBB_ENDIAN_UNSUPPORTED 34 #if defined(TBB_WIN32_USE_CL_BUILTINS) 36 #pragma intrinsic(_ReadWriteBarrier) 37 #pragma intrinsic(_mm_mfence) 38 #define __TBB_compiler_fence() _ReadWriteBarrier() 39 #define __TBB_full_memory_fence() _mm_mfence() 40 #define __TBB_control_consistency_helper() __TBB_compiler_fence() 41 #define __TBB_acquire_consistency_helper() __TBB_compiler_fence() 42 #define __TBB_release_consistency_helper() __TBB_compiler_fence() 46 #define __TBB_compiler_fence() __dmb(_ARM_BARRIER_SY) 47 #define __TBB_full_memory_fence() __dmb(_ARM_BARRIER_SY) 48 #define __TBB_control_consistency_helper() __TBB_compiler_fence() 49 #define __TBB_acquire_consistency_helper() __TBB_full_memory_fence() 50 #define __TBB_release_consistency_helper() __TBB_full_memory_fence() 65 #define __TBB_MACHINE_DEFINE_ATOMICS_CMPSWP(S,T,F) \ 66 inline T __TBB_machine_cmpswp##S( volatile void *ptr, T value, T comparand ) { \ 67 return _InterlockedCompareExchange##F(reinterpret_cast<volatile T *>(ptr),value,comparand); \ 70 #define __TBB_MACHINE_DEFINE_ATOMICS_FETCHADD(S,T,F) \ 71 inline T __TBB_machine_fetchadd##S( volatile void *ptr, T value ) { \ 72 return _InterlockedExchangeAdd##F(reinterpret_cast<volatile T *>(ptr),value); \ 80 #if defined(TBB_WIN32_USE_CL_BUILTINS) 82 #define __TBB_64BIT_ATOMICS 0 97 #define __TBB_CPU_CTL_ENV_PRESENT 1 102 template <
typename T,
size_t S>
103 struct machine_load_store_relaxed {
104 static inline T
load (
const volatile T& location ) {
105 const T
value = location;
133 #define __TBB_CompareAndSwap4(P,V,C) __TBB_machine_cmpswp4(P,V,C) 134 #define __TBB_CompareAndSwap8(P,V,C) __TBB_machine_cmpswp8(P,V,C) 135 #define __TBB_Pause(V) __TBB_machine_pause(V) 138 #define __TBB_USE_FETCHSTORE_AS_FULL_FENCED_STORE 1 139 #define __TBB_USE_GENERIC_HALF_FENCED_LOAD_STORE 1 140 #define __TBB_USE_GENERIC_PART_WORD_FETCH_ADD 1 141 #define __TBB_USE_GENERIC_PART_WORD_FETCH_STORE 1 142 #define __TBB_USE_GENERIC_FETCH_STORE 1 143 #define __TBB_USE_GENERIC_DWORD_LOAD_STORE 1 144 #define __TBB_USE_GENERIC_SEQUENTIAL_CONSISTENCY_LOAD_STORE 1 146 #if defined(TBB_WIN32_USE_CL_BUILTINS) 147 #if !__TBB_WIN8UI_SUPPORT 148 extern "C" __declspec(dllimport)
int __stdcall SwitchToThread(
void );
149 #define __TBB_Yield() SwitchToThread() 152 #define __TBB_Yield() std::this_thread::yield() 155 #define __TBB_Yield() __yield() 159 #define __TBB_AtomicOR(P,V) __TBB_machine_OR(P,V) 160 #define __TBB_AtomicAND(P,V) __TBB_machine_AND(P,V) 162 template <
typename T1,
typename T2>
164 _InterlockedOr((
long volatile *)operand, (
long)addend);
167 template <
typename T1,
typename T2>
169 _InterlockedAnd((
long volatile *)operand, (
long)addend);
#define __TBB_MACHINE_DEFINE_ATOMICS_FETCHADD(S, T, F)
#define __TBB_MACHINE_DEFINE_ATOMICS_CMPSWP(S, T, F)
static void store(volatile T &location, T value)
void __TBB_machine_AND(T1 *operand, T2 addend)
bool operator!=(const cpu_ctl_env &ctl) const
__declspec(dllimport) int __stdcall SwitchToThread(void)
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long value
void __TBB_machine_pause(int32_t delay)
void __TBB_machine_OR(T1 *operand, T2 addend)
#define __TBB_compiler_fence()
static T load(const volatile T &location)
#define __TBB_acquire_consistency_helper()