MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / atomic_store32_release

Function atomic_store32_release

source/extern/rpmalloc.c:277–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

_rpmalloc_span_mapFunction · 0.85
rpmalloc.cFile · 0.85
_rpmalloc_heap_allocateFunction · 0.85
_rpmalloc_heap_releaseFunction · 0.85
rpmalloc_finalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected