Lines Matching refs:new_value
33 static inline bool byte_cas(uint8_t old_value, uint8_t new_value, uint8_t* address) { in byte_cas() argument
36 return byte_atomic->CompareAndSetWeakRelaxed(old_value, new_value); in byte_cas()
49 const uintptr_t new_word = cur_word | (static_cast<uintptr_t>(new_value) << shift_in_bits); in byte_cas()
143 uint8_t expected, new_value; in ModifyCardsAtomic() local
146 new_value = visitor(expected); in ModifyCardsAtomic()
147 } while (expected != new_value && UNLIKELY(!byte_cas(expected, new_value, card_cur))); in ModifyCardsAtomic()
148 if (expected != new_value) { in ModifyCardsAtomic()
149 modified(card_cur, expected, new_value); in ModifyCardsAtomic()
157 uint8_t expected, new_value; in ModifyCardsAtomic() local
160 new_value = visitor(expected); in ModifyCardsAtomic()
161 } while (expected != new_value && UNLIKELY(!byte_cas(expected, new_value, card_end))); in ModifyCardsAtomic()
162 if (expected != new_value) { in ModifyCardsAtomic()
163 modified(card_end, expected, new_value); in ModifyCardsAtomic()