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

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)