Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/libatomic_ops.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-05-26 17:16:20 +0400
committerIvan Maidanski <ivmai@mail.ru>2013-05-26 17:16:20 +0400
commit4399344775ac5986778c541e3c65f08ae1b4543a (patch)
treef5fe379d10c67fa2ae641d89a3bda3942f327ae7
parent25e83ad7a05407142af78ef4e9155ba3ba07176b (diff)
Add comment about store_full implementation for x86
* src/atomic_ops/sysdeps/gcc/x86.h: Add comment about AO_store_full generalization.
-rw-r--r--src/atomic_ops/sysdeps/gcc/x86.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/x86.h b/src/atomic_ops/sysdeps/gcc/x86.h
index 62b50c9..db66dda 100644
--- a/src/atomic_ops/sysdeps/gcc/x86.h
+++ b/src/atomic_ops/sysdeps/gcc/x86.h
@@ -114,6 +114,10 @@ AO_short_fetch_and_add_full (volatile unsigned short *p, unsigned short incr)
: "memory");
}
# define AO_HAVE_xor_full
+
+ /* AO_store_full could be implemented directly using "xchg" but it */
+ /* could be generalized efficiently as an ordinary store accomplished */
+ /* with AO_nop_full ("mfence" instruction). */
#endif /* !AO_PREFER_GENERALIZED */
AO_INLINE AO_TS_VAL_t