Searched refs:newValue (Results 1 - 5 of 5) sorted by relevance

/darwin-on-arm/xnu/libkern/gen/
H A DOSAtomicOperations.c49 * native Boolean CompareAndSwap(UInt32 oldValue, UInt32 newValue, UInt32 * oldValuePtr);
72 UInt32 newValue; local
76 newValue = ((oldValue & and_mask) | or_mask) ^ xor_mask;
77 } while (! OSCompareAndSwap(oldValue, newValue, value));
108 UInt32 newValue; local
114 newValue = (oldValue & ~mask) | (newValue8 << shift);
116 return OSCompareAndSwap(oldValue, newValue, value32);
157 SInt32 newValue; local
161 newValue = oldValue + amount;
162 } while (! OSCompareAndSwap((UInt32) oldValue, (UInt32) newValue, (UInt3
180 SInt8 newValue; local
193 UInt8 newValue; local
226 UInt32 newValue; local
250 SInt16 newValue; local
263 UInt16 newValue; local
[all...]
/darwin-on-arm/xnu/libkern/x86_64/
H A DOSAtomic.s30 #;* Boolean OSCompareAndSwap(SInt32 oldValue, SInt32 newValue, SInt32 *ptr) *
34 _OSCompareAndSwap: #;oldValue, newValue, ptr
49 #;* Boolean OSCompareAndSwap64(SInt64 oldValue, SInt64 newValue, SInt64 *ptr) *
56 _OSCompareAndSwapPtr: #;oldValue, newValue, ptr
/darwin-on-arm/xnu/libkern/i386/
H A DOSAtomic.s30 #;* Boolean OSCompareAndSwap(SInt32 oldValue, SInt32 newValue, SInt32 *ptr) *
39 movl 8(%esp), %edx #; newValue
48 #;* Boolean OSCompareAndSwap64(SInt64 oldValue, SInt64 newValue, SInt64 *ptr) *
59 movl 12+8(%esp), %ebx #; low 32-bits of newValue
60 movl 16+8(%esp), %ecx #; high 32-bits of newValue
/darwin-on-arm/xnu/libkern/libkern/
H A DOSAtomic.h81 UInt64 newValue,
184 * The OSCompareAndSwap function compares the value at the specified address with oldVal. The value of newValue is written to the address only if oldValue and the value at the address are equal. OSCompareAndSwap returns true if newValue is written to the address; otherwise, it returns false.
189 * @param newValue The value to write to address if oldValue compares true.
191 * @result true if newValue was written to the address.
195 UInt32 newValue,
207 * The OSCompareAndSwapPtr function compares the pointer-sized value at the specified address with oldVal. The value of newValue is written to the address only if oldValue and the value at the address are equal. OSCompareAndSwapPtr returns true if newValue is written to the address; otherwise, it returns false.
211 * @param newValue The pointer value to write to address if oldValue compares true.
213 * @result true if newValue wa
[all...]
/darwin-on-arm/xnu/libkern/c++/
H A DOSNumber.cpp63 bool OSNumber::init(const char *newValue, unsigned int newNumberOfBits) argument
65 return init((unsigned long long)strtoul(newValue, NULL, 0), newNumberOfBits);

Completed in 29 milliseconds