Lines Matching refs:NoBarrier_AtomicIncrement
16 // use a guard value to make sure the NoBarrier_AtomicIncrement doesn't go
19 // 32-bit NoBarrier_AtomicIncrement doesn't do the wrong thing on 64-bit
35 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 1), 1);
40 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 2), 3);
45 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 3), 6);
50 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -3), 3);
55 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -2), 1);
60 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), 0);
65 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -1), -1);
70 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, -4), -5);
75 EXPECT_EQ(base::subtle::NoBarrier_AtomicIncrement(&s.count, 5), 0);
144 AtomicType new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1);
148 base::subtle::NoBarrier_AtomicIncrement(&value, -1);
154 new_value = base::subtle::NoBarrier_AtomicIncrement(&value, 1);
158 base::subtle::NoBarrier_AtomicIncrement(&value, -1);