summaryrefslogtreecommitdiff
path: root/src/ip.hpp
diff options
context:
space:
mode:
authorAndrew W. Nosenko <andrew.w.nosenko@gmail.com>2012-04-26 17:02:56 +0300
committerMartin Sustrik <sustrik@250bpm.com>2012-04-29 07:30:37 +0200
commitcdbaa67ff5fdb7cebab670e6f7906d9e81ae7f0a (patch)
treee7b925bf24ecf966577c06333cb22f7e1b208f6d /src/ip.hpp
parent98d4e212bc6379888c006aadb89eb1b96e0b3ddb (diff)
atomic: prefer GCC __sync_*() builtins over inline asm
Use GCC __sync_*() builtins when compiler claims to be GCC (GCC itself, Clang...) It can be disabled explicitly by using XS_DISABLE_GCC_SYNC_BUILTINS define. Just for any case. * src/atomic_counter.hpp [__GNUC__ && !XS_DISABLE_GCC_SYNC_BUILTINS]: (atomic_counter_t::add): (atomic_counter_t::sub): * src/atomic_ptr.hpp [__GNUC__ && !XS_DISABLE_GCC_SYNC_BUILTINS]: (atomic_ptr_t::xchg): (atomic_ptr_t::cas): Prefer GCC __sync_*() builtins over inline asm.
Diffstat (limited to 'src/ip.hpp')
0 files changed, 0 insertions, 0 deletions