]> granicus.if.org Git - libatomic_ops/commit
Generalize compare_double_and_swap_double using double_compare_and_swap
authorIvan Maidanski <ivmai@mail.ru>
Fri, 5 Oct 2012 17:41:19 +0000 (21:41 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 5 Oct 2012 17:42:22 +0000 (21:42 +0400)
commitbd6594522aa61000023546bd6c43459af4590dba
treefef17ff18f3511aee86ee9bbc498986bf2ecf22b
parent016e49d925561c9de5b4bc1eda24a53e6454354b
Generalize compare_double_and_swap_double using double_compare_and_swap

* src/atomic_ops/generalize.h (AO_compare_double_and_swap_double,
AO_compare_double_and_swap_double_full): New inline function (move
code from gcc/arm.h and msftc/x86.h) based on the corresponding
double_compare_and_swap (only if AO_HAVE_DOUBLE_PTR_STORAGE and
AO_HAVE_double_compare_and_swap[_full] defined but not
AO_HAVE_compare_double_and_swap_double[_full]).
* src/atomic_ops/generalize.h (AO_HAVE_compare_double_and_swap_double,
AO_HAVE_compare_double_and_swap_double_full): New macro (moved
from gcc/arm.h and msftc/x86.h, respectively).
* src/atomic_ops/sysdeps/gcc/arm.h
(AO_compare_double_and_swap_double): Remove definition from this file;
remove TODO item.
* src/atomic_ops/sysdeps/msftc/x86.h
(AO_compare_double_and_swap_double_full): Likewise.
src/atomic_ops/generalize.h
src/atomic_ops/sysdeps/gcc/arm.h
src/atomic_ops/sysdeps/msftc/x86.h