| 275 | static FORCEINLINE int32_t atomic_add32(atomic32_t* val, int32_t add) { return (int32_t)InterlockedExchangeAdd(val, add) + add; } |
| 276 | static FORCEINLINE int atomic_cas32_acquire(atomic32_t* dst, int32_t val, int32_t ref) { return (InterlockedCompareExchange(dst, val, ref) == ref) ? 1 : 0; } |
| 277 | static FORCEINLINE void atomic_store32_release(atomic32_t* dst, int32_t val) { *dst = val; } |
| 278 | static FORCEINLINE int64_t atomic_load64(atomic64_t* src) { return *src; } |
| 279 | static FORCEINLINE int64_t atomic_add64(atomic64_t* val, int64_t add) { return (int64_t)InterlockedExchangeAdd64(val, add) + add; } |
| 280 | static FORCEINLINE void* atomic_load_ptr(atomicptr_t* src) { return (void*)*src; } |
no outgoing calls
no test coverage detected