Provide compatibility shim for atomic_dec_64_nv.
X-MFC-with: r270247 MFC after: 13 days
This commit is contained in:
parent
f8569ca154
commit
d291a3bd9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270260
@ -117,6 +117,12 @@ atomic_inc_64_nv(volatile uint64_t *target)
|
||||
return (atomic_add_64_nv(target, 1));
|
||||
}
|
||||
|
||||
static __inline uint64_t
|
||||
atomic_dec_64_nv(volatile uint64_t *target)
|
||||
{
|
||||
return (atomic_add_64_nv(target, -1));
|
||||
}
|
||||
|
||||
#if !defined(COMPAT_32BIT) && defined(__LP64__)
|
||||
static __inline void *
|
||||
atomic_cas_ptr(volatile void *target, void *cmp, void *newval)
|
||||
|
Loading…
Reference in New Issue
Block a user