]> granicus.if.org Git - libatomic_ops/commit
Do not disallow to define double_load using built-in atomics (Aarch64)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 5 Dec 2017 08:27:47 +0000 (11:27 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 5 Dec 2017 08:30:21 +0000 (11:30 +0300)
commit157be7f1874a7c1ab45481df2bbb2b3410586efb
tree39d442b0f4e03192c06895428d137b4dad767767
parent1d5786e98aefa7865bf3358bbb9ed3bb42500bfb
Do not disallow to define double_load using built-in atomics (Aarch64)
(fix commit 03a0465)

Clang 3.8 (and later) and GCC have the correct implementation of
double-word atomic load (containing STXP instruction) for Aarch64.

* src/atomic_ops/sysdeps/gcc/aarch64.h [AO_PREFER_BUILTIN_ATOMICS]
(AO_SKIPATOMIC_double_load, AO_SKIPATOMIC_double_load_acquire): Do not
define for GCC and if AO_CLANG_PREREQ(3, 8).
src/atomic_ops/sysdeps/gcc/aarch64.h