diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-02-05 09:14:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-05 09:14:37 -0500 |
| commit | c4c6c49e526d39d8cdc8eb8072d2e45b4086dc82 (patch) | |
| tree | b5b0db8b056bad6acd8db6803daee1b205d2df94 /src/libcore/sync | |
| parent | 6a4c906f7ab30300b1792cb7a24a1e326fd01aec (diff) | |
| parent | 9903975003276cc42a1ed5f21eee292b7c62c331 (diff) | |
| download | rust-c4c6c49e526d39d8cdc8eb8072d2e45b4086dc82.tar.gz rust-c4c6c49e526d39d8cdc8eb8072d2e45b4086dc82.zip | |
Rollup merge of #38959 - Amanieu:atomic128, r=alexcrichton
Add 128-bit atomics This is currently only supported on AArch64 since that is the only target which unconditionally supports 128-bit atomic operations. cc #35118
Diffstat (limited to 'src/libcore/sync')
| -rw-r--r-- | src/libcore/sync/atomic.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index 743e3c41170..58cd0af7ee3 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -1318,6 +1318,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"), |
