27 #include "precompiled.h"
33 return __sync_fetch_and_add(location, increment);
36 bool cpu_CAS(
volatile intptr_t* location, intptr_t expected, intptr_t newValue)
38 return __sync_bool_compare_and_swap(location, expected, newValue);
43 return __sync_bool_compare_and_swap(location, expected, newValue);
const char * cpu_IdentifierString()
intptr_t cpu_AtomicAdd(volatile intptr_t *location, intptr_t increment)
add a signed value to a variable without the possibility of interference from other threads/CPUs...
bool cpu_CAS64(volatile i64 *location, i64 expected, i64 newValue)
bool cpu_CAS(volatile intptr_t *location, intptr_t expected, intptr_t newValue)
atomic "compare and swap".