Lines Matching defs:last_value
862 T last_value = test_values<T>[0];
863 fbl::atomic<T> atomic_value(last_value);
866 ASSERT_EQ(atomic_value.load(), last_value, "Member exchange busted");
867 ASSERT_EQ(atomic_value.exchange(value), last_value, "Member exchange busted");
868 last_value = value;
871 last_value = test_values<T>[0];
872 atomic_value.store(last_value);
875 ASSERT_EQ(fbl::atomic_load(&atomic_value), last_value, "Nonmember exchange busted");
876 ASSERT_EQ(fbl::atomic_exchange(&atomic_value, value), last_value, "Nonmember exchange busted");
877 last_value = value;
880 last_value = test_values<T>[0];
881 volatile fbl::atomic<T> volatile_value(last_value);
884 ASSERT_EQ(volatile_value.load(), last_value, "Member exchange busted");
885 ASSERT_EQ(volatile_value.exchange(value), last_value, "Member exchange busted");
886 last_value = value;
889 last_value = test_values<T>[0];
890 volatile_value.store(last_value);
893 ASSERT_EQ(fbl::atomic_load(&volatile_value), last_value, "Nonmember exchange busted");
894 ASSERT_EQ(fbl::atomic_exchange(&volatile_value, value), last_value, "Nonmember exchange busted");
895 last_value = value;