LinuxKPI: Add atomic_long_sub macro.
Reviewed by: imp (mentor), hps Approved by: imp (mentor), hps MFC after: 1 week Differential Revision: D20718
This commit is contained in:
parent
83b319101f
commit
62260f68b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349276
@ -42,6 +42,7 @@ typedef struct {
|
||||
} atomic_long_t;
|
||||
|
||||
#define atomic_long_add(i, v) atomic_long_add_return((i), (v))
|
||||
#define atomic_long_sub(i, v) atomic_long_add_return(-(i), (v))
|
||||
#define atomic_long_inc_return(v) atomic_long_add_return(1, (v))
|
||||
#define atomic_long_inc_not_zero(v) atomic_long_add_unless((v), 1, 0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user