Fix compare_double_and_swap_double_full for gcc/x32
authorIvan Maidanski <ivmai@mail.ru>
Tue, 18 Sep 2012 16:48:08 +0000 (20:48 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 8 Oct 2012 09:59:05 +0000 (13:59 +0400)
commit73cdda90dfea998be728d0c9db99df91aad8725a
tree6b71835721f2facf121f69846023e84e17fd9034
parent46425e19b4b0c84d0eb88313cdee9aa0d3a2fb89
Fix compare_double_and_swap_double_full for gcc/x32

* src/atomic_ops.h: Include gcc/x86.h instead of gcc/x86_64.h if
gcc/x32 (i.e., GCC (or Intel compiler), __x86_64__ is defined, and
__ILP32__ is defined) to have AO_compare_double_and_swap_double_full
defined properly (based on cmpxchg8b); explicitly define
AO_USE_PENTIUM4_INSTRS for gcc/x32.
* src/atomic_ops/sysdeps/gcc/x86_64.h: Remove ILP32-specific code
(AO_T_IS_INT definition).
src/atomic_ops.h
src/atomic_ops/sysdeps/gcc/x86_64.h