Add no-barrier double_compare_and_swap to generalization
authorIvan Maidanski <ivmai@mail.ru>
Tue, 2 Oct 2012 07:24:16 +0000 (11:24 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 2 Oct 2012 07:26:59 +0000 (11:26 +0400)
commit7de00cfaffdfed8bedbfdf01bbdfbaecdb40d5f6
treeb6cbb7bd485cd6bac6f45d45f85fe3e2e93237e5
parent7c7a2c674227a12f2ae5928325568a087e67c49d
Add no-barrier double_compare_and_swap to generalization

* src/atomic_ops/generalize.h (AO_double_compare_and_swap):
New function (only if AO_HAVE_compare_double_and_swap_double and
not AO_HAVE_double_compare_and_swap) completing double-CAS family;
reformat comment.
* src/atomic_ops/generalize.h (AO_HAVE_double_compare_and_swap):
Define macro (accompanying AO_double_compare_and_swap).
src/atomic_ops/generalize.h