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()
148 uint8_t expected, new_value; in ModifyCardsAtomic() local
151 new_value = visitor(expected); in ModifyCardsAtomic()
152 } while (expected != new_value && UNLIKELY(!byte_cas(expected, new_value, card_cur))); in ModifyCardsAtomic()
153 if (expected != new_value) { in ModifyCardsAtomic()
154 modified(card_cur, expected, new_value); in ModifyCardsAtomic()
162 uint8_t expected, new_value; in ModifyCardsAtomic() local
165 new_value = visitor(expected); in ModifyCardsAtomic()
166 } while (expected != new_value && UNLIKELY(!byte_cas(expected, new_value, card_end))); in ModifyCardsAtomic()
167 if (expected != new_value) { in ModifyCardsAtomic()
168 modified(card_end, expected, new_value); in ModifyCardsAtomic()