Home | History | Annotate | Download | only in tests

Lines Matching refs:AtomicType

40 template <class AtomicType>
50 AtomicType prev_word;
51 AtomicType count;
52 AtomicType next_word;
55 AtomicType prev_word_value, next_word_value;
56 memset(&prev_word_value, 0xFF, sizeof(AtomicType));
57 memset(&next_word_value, 0xEE, sizeof(AtomicType));
113 template <class AtomicType>
115 AtomicType value = 0;
116 AtomicType prev = base::subtle::NoBarrier_CompareAndSwap(&value, 0, 1);
122 const AtomicType k_test_val = (GG_ULONGLONG(1) <<
123 (NUM_BITS(AtomicType) - 2)) + 11;
136 template <class AtomicType>
138 AtomicType value = 0;
139 AtomicType new_value = base::subtle::NoBarrier_AtomicExchange(&value, 1);
145 const AtomicType k_test_val = (GG_ULONGLONG(1) <<
146 (NUM_BITS(AtomicType) - 2)) + 11;
159 template <class AtomicType>
163 AtomicType test_val = GG_ULONGLONG(1) << (NUM_BITS(AtomicType) / 2);
164 AtomicType value = test_val - 1;
165 AtomicType new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1);
175 template <class AtomicType>
177 const AtomicType kVal1 = static_cast<AtomicType>(0xa5a5a5a5a5a5a5a5LL);
178 const AtomicType kVal2 = static_cast<AtomicType>(-1);
180 AtomicType value;
200 template <class AtomicType>
202 const AtomicType kVal1 = static_cast<AtomicType>(0xa5a5a5a5a5a5a5a5LL);
203 const AtomicType kVal2 = static_cast<AtomicType>(-1);
205 AtomicType value;
223 template <class AtomicType>
225 TestCompareAndSwap<AtomicType>();
226 TestAtomicExchange<AtomicType>();
227 TestAtomicIncrementBounds<AtomicType>();
228 TestStore<AtomicType>();
229 TestLoad<AtomicType>();