New atomics from dalvik.
Change-Id: I00de43b180aaaf69f40f9bebddef641cffe949b7
diff --git a/src/atomic.h b/src/atomic.h
index e3e4fc0..dab625e 100644
--- a/src/atomic.h
+++ b/src/atomic.h
@@ -30,16 +30,22 @@
* quasiatomic operations that are performed on partially-overlapping
* memory.
*
- * None of these provide a memory barrier.
+ * Only the "Sync" functions provide a memory barrier.
*/
/*
* Swap the 64-bit value at "addr" with "value". Returns the previous
- * value.
+ * value. No memory barriers.
*/
int64_t QuasiAtomicSwap64(int64_t value, volatile int64_t* addr);
/*
+ * Swap the 64-bit value at "addr" with "value". Returns the previous
+ * value. Provides memory barriers.
+ */
+int64_t QuasiAtomicSwap64Sync(int64_t value, volatile int64_t* addr);
+
+/*
* Read the 64-bit value at "addr".
*/
int64_t QuasiAtomicRead64(volatile const int64_t* addr);