2016-01-07 13:07:13 +01:00
|
|
|
#pragma once
|
|
|
|
#include <wut.h>
|
|
|
|
|
2016-01-07 17:02:54 +01:00
|
|
|
/**
|
|
|
|
* \defgroup coreinit_atomic64 Atomic 64 bit
|
|
|
|
* \ingroup coreinit
|
|
|
|
*
|
|
|
|
* These functions are used for atomically operating on 64 bit values in memory.
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2016-01-07 15:09:43 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2016-01-07 13:07:13 +01:00
|
|
|
|
|
|
|
uint64_t
|
2017-04-11 00:15:42 +02:00
|
|
|
OSGetAtomic64(volatile uint64_t *ptr);
|
2016-01-07 13:07:13 +01:00
|
|
|
|
|
|
|
uint64_t
|
2017-04-11 00:15:42 +02:00
|
|
|
OSSetAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint64_t value);
|
|
|
|
|
|
|
|
BOOL
|
2017-04-11 00:15:42 +02:00
|
|
|
OSCompareAndSwapAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint64_t compare,
|
|
|
|
uint64_t value);
|
|
|
|
|
|
|
|
BOOL
|
2017-04-11 00:15:42 +02:00
|
|
|
OSCompareAndSwapAtomicEx64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint64_t compare,
|
|
|
|
uint64_t value,
|
|
|
|
uint64_t *old);
|
|
|
|
|
|
|
|
uint64_t
|
2017-04-11 00:15:42 +02:00
|
|
|
OSSwapAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint64_t value);
|
|
|
|
|
|
|
|
int64_t
|
2017-04-11 00:15:42 +02:00
|
|
|
OSAddAtomic64(volatile int64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
int64_t value);
|
|
|
|
|
|
|
|
uint64_t
|
2017-04-11 00:15:42 +02:00
|
|
|
OSAndAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint64_t value);
|
|
|
|
|
|
|
|
uint64_t
|
2017-04-11 00:15:42 +02:00
|
|
|
OSOrAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint64_t value);
|
|
|
|
|
|
|
|
uint64_t
|
2017-04-11 00:15:42 +02:00
|
|
|
OSXorAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint64_t value);
|
|
|
|
|
|
|
|
BOOL
|
2017-04-11 00:15:42 +02:00
|
|
|
OSTestAndClearAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint32_t bit);
|
|
|
|
|
|
|
|
BOOL
|
2017-04-11 00:15:42 +02:00
|
|
|
OSTestAndSetAtomic64(volatile uint64_t *ptr,
|
2016-01-07 13:07:13 +01:00
|
|
|
uint32_t bit);
|
|
|
|
|
2016-01-07 15:09:43 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2016-01-07 17:02:54 +01:00
|
|
|
|
|
|
|
/** @} */
|