Lines Matching refs:old_value
102 int32_t old_value = *where; in latching_incr_int() local
103 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { in latching_incr_int()
106 if (OSAtomicCompareAndSwapInt(old_value, old_value + 2, where)) { in latching_incr_int()
107 return old_value + 2; in latching_incr_int()
116 int32_t old_value = *where; in latching_incr_int_not_deallocating() local
117 if (old_value & BLOCK_DEALLOCATING) { in latching_incr_int_not_deallocating()
121 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { in latching_incr_int_not_deallocating()
125 if (OSAtomicCompareAndSwapInt(old_value, old_value + 2, where)) { in latching_incr_int_not_deallocating()
138 int32_t old_value = *where; in latching_decr_int_should_deallocate() local
139 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { in latching_decr_int_should_deallocate()
142 if ((old_value & BLOCK_REFCOUNT_MASK) == 0) { in latching_decr_int_should_deallocate()
145 int32_t new_value = old_value - 2; in latching_decr_int_should_deallocate()
147 if ((old_value & (BLOCK_REFCOUNT_MASK | BLOCK_DEALLOCATING)) == 2) { in latching_decr_int_should_deallocate()
148 new_value = old_value - 1; in latching_decr_int_should_deallocate()
151 if (OSAtomicCompareAndSwapInt(old_value, new_value, where)) { in latching_decr_int_should_deallocate()