2022-09-11 18:02:07 +00:00
|
|
|
#ifndef NSYNC_ATOMIC_H_
|
|
|
|
#define NSYNC_ATOMIC_H_
|
2022-09-12 11:19:32 +00:00
|
|
|
#include "libc/atomic.h"
|
2022-09-11 18:02:07 +00:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2023-06-08 11:37:05 +00:00
|
|
|
#define nsync_atomic_uint32_ atomic_uint_fast32_t
|
2022-09-11 18:02:07 +00:00
|
|
|
|
|
|
|
#define NSYNC_ATOMIC_UINT32_INIT_ 0
|
|
|
|
#define NSYNC_ATOMIC_UINT32_LOAD_(p) (*(p))
|
|
|
|
#define NSYNC_ATOMIC_UINT32_STORE_(p, v) (*(p) = (v))
|
|
|
|
#define NSYNC_ATOMIC_UINT32_PTR_(p) (p)
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* NSYNC_ATOMIC_H_ */
|