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

Function atomic_load64

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

Source from the content-addressed store, hash-verified

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; }
281static FORCEINLINE void atomic_store_ptr(atomicptr_t* dst, void* val) { *dst = val; }

Callers 3

rpmalloc_dump_statisticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected