]> granicus.if.org Git - libatomic_ops/commit
Use generalized load/store if AO_PREFER_GENERALIZED (gcc/generic)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 27 Jan 2017 16:35:20 +0000 (19:35 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 27 Jan 2017 16:35:20 +0000 (19:35 +0300)
commit7c02f314b10d3db3ff23f8adb13b85d753f477d7
treeca96bee869ba594f758b75a997a52b513d2864ac
parent1282ece800c484a6b294fb994d7db255ff133df2
Use generalized load/store if AO_PREFER_GENERALIZED (gcc/generic)

Note: AO_PREFER_GENERALIZED macro is for testing generalize.h mainly.

* src/atomic_ops/sysdeps/gcc/generic-small.template (AO_XSIZE_load,
AO_XSIZE_load_acquire, AO_XSIZE_store, AO_XSIZE_store_release): Do not
define if AO_GCC_HAVE_XSIZE_SYNC_CAS and AO_PREFER_GENERALIZED.
* src/atomic_ops/sysdeps/gcc/generic-small.h: Regenerate.
* src/atomic_ops/sysdeps/gcc/generic.h [AO_HAVE_DOUBLE_PTR_STORAGE]
(AO_GCC_HAVE_double_SYNC_CAS): Move the definition upper to be before
AO_double_load.
* src/atomic_ops/sysdeps/gcc/generic.h [AO_HAVE_DOUBLE_PTR_STORAGE]
(AO_double_load, AO_double_load_acquire, AO_double_store,
AO_double_store_release): Do not define if AO_GCC_HAVE_double_SYNC_CAS
and AO_PREFER_GENERALIZED.
src/atomic_ops/sysdeps/gcc/generic-small.h
src/atomic_ops/sysdeps/gcc/generic-small.template
src/atomic_ops/sysdeps/gcc/generic.h