Squash commits for public release
This commit is contained in:
12
kernel/include/libkern/atomic.h
Normal file
12
kernel/include/libkern/atomic.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef _KERNEL_LIBKERN_ATOMIC_H
|
||||
#define _KERNEL_LIBKERN_ATOMIC_H
|
||||
|
||||
#include <libkern/c_attrs.h>
|
||||
#include <libkern/kassert.h>
|
||||
#include <libkern/types.h>
|
||||
|
||||
#define atomic_add(x, val) (__atomic_add_fetch(x, val, __ATOMIC_SEQ_CST))
|
||||
#define atomic_store(x, val) (__atomic_store_n(x, val, __ATOMIC_SEQ_CST))
|
||||
#define atomic_load(x) (__atomic_load_n(x, __ATOMIC_SEQ_CST))
|
||||
|
||||
#endif // _KERNEL_LIBKERN_LOCK_H
|
||||
Reference in New Issue
Block a user