Home | History | Annotate | Download | only in dethread

Lines Matching full:dstaddr

36  * \param dstAddr	Destination address.
39 DE_INLINE deInt32 deAtomicIncrement32 (deInt32 volatile* dstAddr)
42 return _InterlockedIncrement((long volatile*)dstAddr);
44 return __sync_add_and_fetch(dstAddr, 1);
52 * \param dstAddr Destination address.
55 DE_INLINE deInt32 deAtomicDecrement32 (deInt32 volatile* dstAddr)
58 return _InterlockedDecrement((long volatile*)dstAddr);
60 return __sync_sub_and_fetch(dstAddr, 1);
68 * \param dstAddr Destination address.
71 * \return compare value if CAS passes, *dstAddr value otherwise
78 * dstAddr is returned.
80 DE_INLINE deUint32 deAtomicCompareExchange32 (deUint32 volatile* dstAddr, deUint32 compare, deUint32 exchange)
83 return _InterlockedCompareExchange((long volatile*)dstAddr, exchange, compare);
85 return __sync_val_compare_and_swap(dstAddr, compare, exchange);