Searched refs:oldi (Results 1 – 1 of 1) sorted by relevance
58 static __inline bool OSAtomicCompareAndSwapInt(int oldi, int newi, int volatile *dst) { in OSAtomicCompareAndSwapInt() argument60 int original = InterlockedCompareExchange(dst, newi, oldi); in OSAtomicCompareAndSwapInt()61 return (original == oldi); in OSAtomicCompareAndSwapInt()77 static __inline bool OSAtomicCompareAndSwapInt(int oldi, int newi, int volatile *dst) { in OSAtomicCompareAndSwapInt() argument78 return __sync_bool_compare_and_swap(dst, oldi, newi); in OSAtomicCompareAndSwapInt()