Lines Matching refs:AtomicType
12 template <class AtomicType>
22 AtomicType prev_word;
23 AtomicType count;
24 AtomicType next_word;
27 AtomicType prev_word_value, next_word_value;
28 memset(&prev_word_value, 0xFF, sizeof(AtomicType));
29 memset(&next_word_value, 0xEE, sizeof(AtomicType));
85 template <class AtomicType>
87 AtomicType value = 0;
88 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1);
95 AtomicType fail = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 2);
101 const AtomicType k_test_val = (static_cast<uint64_t>(1) <<
102 (NUM_BITS(AtomicType) - 2)) + 11;
115 template <class AtomicType>
117 AtomicType value = 0;
118 AtomicType new_value = base::subtle::NoBarrier_AtomicExchange(&value, 1);
124 const AtomicType k_test_val = (static_cast<uint64_t>(1) <<
125 (NUM_BITS(AtomicType) - 2)) + 11;
138 template <class AtomicType>
141 AtomicType test_val = (static_cast<uint64_t>(1) <<
142 (NUM_BITS(AtomicType) - 1));
143 AtomicType value = -1 ^ test_val;
144 AtomicType new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1);
152 test_val = static_cast<uint64_t>(1) << (NUM_BITS(AtomicType) / 2);
162 // Return an AtomicType with the value 0xa5a5a5..
163 template <class AtomicType>
164 static AtomicType TestFillValue() {
165 AtomicType val = 0;
166 memset(&val, 0xa5, sizeof(AtomicType));
172 template <class AtomicType>
174 const AtomicType kVal1 = TestFillValue<AtomicType>();
175 const AtomicType kVal2 = static_cast<AtomicType>(-1);
177 AtomicType value;
197 template <class AtomicType>
199 const AtomicType kVal1 = TestFillValue<AtomicType>();
200 const AtomicType kVal2 = static_cast<AtomicType>(-1);
202 AtomicType value;