Add atomic_sub_* functions to libspl.
authorEtienne Dechamps <etienne.dechamps@ovh.net>
Wed, 27 Jun 2012 08:26:49 +0000 (10:26 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Oct 2012 15:56:37 +0000 (08:56 -0700)
commit142e6dd100eb70ef06f39015a2e54cbd74172f8b
tree24a836ff1197a704824819738bcaeeb127f0e7a5
parent82f46731fd5a9eef4f87530e94922664b58a6138
Add atomic_sub_* functions to libspl.

Both the SPL and the ZFS libspl export most of the atomic_* functions,
except atomic_sub_* functions which are only exported by the SPL, not by
libspl. This patch remedies that by implementing atomic_sub_* functions
in libspl.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1013
lib/libspl/asm-generic/atomic.c
lib/libspl/asm-i386/atomic.S
lib/libspl/asm-x86_64/atomic.S
lib/libspl/include/atomic.h