Lines Matching defs:oldValue
49 * native Boolean CompareAndSwap(UInt32 oldValue, UInt32 newValue, UInt32 * oldValuePtr);
107 UInt32 oldValue;
111 oldValue = *value;
112 newValue = ((oldValue & and_mask) | or_mask) ^ xor_mask;
113 } while (! OSCompareAndSwap(oldValue, newValue, value));
115 return oldValue;
140 UInt32 oldValue;
145 oldValue = *value32;
146 oldValue = (oldValue & ~mask) | (oldValue8 << shift);
147 newValue = (oldValue & ~mask) | (newValue8 << shift);
149 return OSCompareAndSwap(oldValue, newValue, value32);
155 UInt8 oldValue;
163 oldValue = *startAddress;
164 if ((oldValue & mask) == wantValue) {
167 } while (! OSCompareAndSwap8(oldValue, (oldValue & ~mask) | wantValue, startAddress));
169 return (oldValue & mask) == wantValue;
198 SInt8 oldValue;
202 oldValue = *value;
203 newValue = oldValue + amount;
204 } while (! OSCompareAndSwap8((UInt8) oldValue, (UInt8) newValue, (volatile UInt8 *) value));
206 return oldValue;
211 UInt8 oldValue;
215 oldValue = *value;
216 newValue = ((oldValue & and_mask) | or_mask) ^ xor_mask;
217 } while (! OSCompareAndSwap8(oldValue, newValue, value));
219 return oldValue;
244 UInt32 oldValue;
249 oldValue = *value32;
250 oldValue = (oldValue & ~mask) | (oldValue16 << shift);
251 newValue = (oldValue & ~mask) | (newValue16 << shift);
253 return OSCompareAndSwap(oldValue, newValue, value32);
268 SInt16 oldValue;
272 oldValue = *value;
273 newValue = oldValue + amount;
274 } while (! OSCompareAndSwap16((UInt16) oldValue, (UInt16) newValue, (volatile UInt16 *) value));
276 return oldValue;
281 UInt16 oldValue;
285 oldValue = *value;
286 newValue = ((oldValue & and_mask) | or_mask) ^ xor_mask;
287 } while (! OSCompareAndSwap16(oldValue, newValue, value));
289 return oldValue;