]> granicus.if.org Git - libatomic_ops/commit
Use built-in __sync CAS for double-CAS if AO_USE_SYNC_CAS_BUILTIN for x86
authorIvan Maidanski <ivmai@mail.ru>
Mon, 8 Oct 2012 14:09:40 +0000 (18:09 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 8 Oct 2012 14:09:40 +0000 (18:09 +0400)
commit03de7740c21fe6e4a6bdd7af09d5ff5189d4d70e
treee35ca21cca3ef29a24fed993631e04f523b1d1f1
parent1f1dabbc4d451552036a405faacfb11f22a75604
Use built-in __sync CAS for double-CAS if AO_USE_SYNC_CAS_BUILTIN for x86

* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full): Do not define if
AO_USE_SYNC_CAS_BUILTIN, define AO_double_compare_and_swap_full
(based on __sync_bool_compare_and_swap) instead (for x86).
src/atomic_ops/sysdeps/gcc/x86.h