27 return __atomic_fetch_add(address, val, __ATOMIC_RELAXED);
29 static_assert(
sizeof(long) ==
sizeof(uint32_t),
30 "Expected long to be a 32 bit type");
31 return static_cast<uint32_t
>(_InterlockedExchangeAdd(
32 reinterpret_cast<long*
>(address),
static_cast<long>(val)));
34 static_assert(
false,
"AtomicFetchAddRelaxed not implemented for platform");