aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2014-11-25 19:34:50 +0100
committerRickard Green <[email protected]>2014-11-25 19:34:50 +0100
commit7c14d7b35f3fe6df4ab44a30ba1e3c6dac00a70b (patch)
treed0aa0b00417515de605691f86b5f9c5f8dbf9033 /lib/wx
parent23c0cebf707e61a0f2b9e9eb472d7cf3ad4eb94f (diff)
parent26e93069d53a44e274bc7c5f871fa8a7bd1dd94b (diff)
downloadotp-7c14d7b35f3fe6df4ab44a30ba1e3c6dac00a70b.tar.gz
otp-7c14d7b35f3fe6df4ab44a30ba1e3c6dac00a70b.tar.bz2
otp-7c14d7b35f3fe6df4ab44a30ba1e3c6dac00a70b.zip
Merge branch 'maint'
* maint: Implement support for double word atomics using libatomic_ops Improve usage of libatomic_ops for word size atomics Optimize atomic ops with release barrier for 32-bit PowerPC
Diffstat (limited to 'lib/wx')
-rw-r--r--lib/wx/aclocal.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/wx/aclocal.m4 b/lib/wx/aclocal.m4
index ed492d55ff..d78025b0be 100644
--- a/lib/wx/aclocal.m4
+++ b/lib/wx/aclocal.m4
@@ -1421,9 +1421,31 @@ case "$THR_LIB_NAME" in
int z;
AO_nop_full();
+#if defined(AO_HAVE_store)
AO_store(&x, (AO_t) 0);
+#elif defined(AO_HAVE_store_release)
+ AO_store_release(&x, (AO_t) 0);
+#else
+#error No store
+#endif
+#if defined(AO_HAVE_load)
z = AO_load(&x);
+#elif defined(AO_HAVE_load_acquire)
+ z = AO_load_acquire(&x);
+#else
+#error No load
+#endif
+#if defined(AO_HAVE_compare_and_swap_full)
z = AO_compare_and_swap_full(&x, (AO_t) 0, (AO_t) 1);
+#elif defined(AO_HAVE_compare_and_swap_release)
+ z = AO_compare_and_swap_release(&x, (AO_t) 0, (AO_t) 1);
+#elif defined(AO_HAVE_compare_and_swap_acquire)
+ z = AO_compare_and_swap_acquire(&x, (AO_t) 0, (AO_t) 1);
+#elif defined(AO_HAVE_compare_and_swap)
+ z = AO_compare_and_swap(&x, (AO_t) 0, (AO_t) 1);
+#else
+#error No compare_and_swap
+#endif
],
[ethr_have_native_atomics=yes
ethr_have_libatomic_ops=yes])