Provide compatibility shim for atomic_dec_64_nv.

X-MFC-with:	r270247
MFC after:	13 days
This commit is contained in:
Xin LI 2014-08-21 08:25:46 +00:00
parent f8569ca154
commit d291a3bd9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270260

View File

@ -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)