wut/include/coreinit/atomic64.h
James Benton 2e776838ff Use a macro WUT_LIB_HEADER_{START,END}...
So we don't have to extern C and pragma pack in every header file.
2016-01-07 05:02:17 -08:00

53 lines
999 B
C

#pragma once
#include <wut.h>
WUT_LIB_HEADER_START
uint64_t
OSGetAtomic64(uint64_t *ptr);
uint64_t
OSSetAtomic64(uint64_t *ptr,
uint64_t value);
BOOL
OSCompareAndSwapAtomic64(uint64_t *ptr,
uint64_t compare,
uint64_t value);
BOOL
OSCompareAndSwapAtomicEx64(uint64_t *ptr,
uint64_t compare,
uint64_t value,
uint64_t *old);
uint64_t
OSSwapAtomic64(uint64_t *ptr,
uint64_t value);
int64_t
OSAddAtomic64(int64_t *ptr,
int64_t value);
uint64_t
OSAndAtomic64(uint64_t *ptr,
uint64_t value);
uint64_t
OSOrAtomic64(uint64_t *ptr,
uint64_t value);
uint64_t
OSXorAtomic64(uint64_t *ptr,
uint64_t value);
BOOL
OSTestAndClearAtomic64(uint64_t *ptr,
uint32_t bit);
BOOL
OSTestAndSetAtomic64(uint64_t *ptr,
uint32_t bit);
WUT_LIB_HEADER_END