about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2017-01-10 13:20:38 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2017-01-10 13:20:38 +0100
commit9903975003276cc42a1ed5f21eee292b7c62c331 (patch)
tree6a4b53a544f8b28504b94444717a81a5a4a8fd5d /src/libcore/sync
parent74e5b7d96af721b98474f6d4982b5eb594cd022c (diff)
downloadrust-9903975003276cc42a1ed5f21eee292b7c62c331.tar.gz
rust-9903975003276cc42a1ed5f21eee292b7c62c331.zip
Add 128-bit atomics
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 75205794471..7534473b492 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -1314,6 +1314,24 @@ atomic_int! {
     unstable(feature = "integer_atomics", issue = "32976"),
     u64 AtomicU64 ATOMIC_U64_INIT
 }
+#[cfg(not(stage0))]
+#[cfg(target_has_atomic = "128")]
+atomic_int! {
+    unstable(feature = "i128", issue = "35118"),
+    unstable(feature = "i128", issue = "35118"),
+    unstable(feature = "i128", issue = "35118"),
+    unstable(feature = "i128", issue = "35118"),
+    i128 AtomicI128 ATOMIC_I128_INIT
+}
+#[cfg(not(stage0))]
+#[cfg(target_has_atomic = "128")]
+atomic_int! {
+    unstable(feature = "i128", issue = "35118"),
+    unstable(feature = "i128", issue = "35118"),
+    unstable(feature = "i128", issue = "35118"),
+    unstable(feature = "i128", issue = "35118"),
+    u128 AtomicU128 ATOMIC_U128_INIT
+}
 #[cfg(target_has_atomic = "ptr")]
 atomic_int!{
     stable(feature = "rust1", since = "1.0.0"),