Lines Matching refs:word

40     using word = uintptr_t;  typedef in tbb::detail::r1::tricky_atomic_pointer
42 … static T* fetch_add( std::atomic<word>& location, word addend, std::memory_order memory_order ) { in fetch_add()
46 static T* exchange( std::atomic<word>& location, T* value, std::memory_order memory_order ) { in exchange()
47 return reinterpret_cast<T*>(location.exchange(reinterpret_cast<word>(value), memory_order)); in exchange()
50 …static T* compare_exchange_strong( std::atomic<word>& obj, const T* expected, const T* desired, st… in compare_exchange_strong()
51 word expd = reinterpret_cast<word>(expected); in compare_exchange_strong()
52 obj.compare_exchange_strong(expd, reinterpret_cast<word>(desired), memory_order); in compare_exchange_strong()
56 … static void store( std::atomic<word>& location, const T* value, std::memory_order memory_order ) { in store()
57 location.store(reinterpret_cast<word>(value), memory_order); in store()
60 static T* load( std::atomic<word>& location, std::memory_order memory_order ) { in load()
64 static void spin_wait_while_eq(const std::atomic<word>& location, const T* value) { in spin_wait_while_eq()
65 tbb::detail::d0::spin_wait_while_eq(location, reinterpret_cast<word>(value) ); in spin_wait_while_eq()
72 T* operator&( const word operand2 ) const { in operator &()
73 return reinterpret_cast<T*>( reinterpret_cast<word>(ref) & operand2 ); in operator &()
75 T* operator|( const word operand2 ) const { in operator |()
76 return reinterpret_cast<T*>( reinterpret_cast<word>(ref) | operand2 ); in operator |()
147 static const tricky_pointer::word FLAG = 0x1;