diff options
| author | Ralf Jung <post@ralfj.de> | 2023-09-08 09:26:06 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-10-15 17:41:50 +0200 |
| commit | 07b8c10ed89c64d7cb03e16cf9f61509100a3a2b (patch) | |
| tree | 613fc6249fe21309176f802407d71a3b1465364e /library/core/src/sync | |
| parent | 7453235febe1230fd475edb8a9ac9d446c9d3008 (diff) | |
| download | rust-07b8c10ed89c64d7cb03e16cf9f61509100a3a2b.tar.gz rust-07b8c10ed89c64d7cb03e16cf9f61509100a3a2b.zip | |
add general powerpc64le bound
(some powerpc64le targets can guarantee more, but for now it doesn't seem worth separating by OS/vendor)
Diffstat (limited to 'library/core/src/sync')
| -rw-r--r-- | library/core/src/sync/atomic.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 118b90b5d64..b3f277654a7 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -92,13 +92,14 @@ //! "sufficiently small" depends on the architecture: //! //! | Target architecture | Maximal atomic `load` size that is guaranteed read-only | -//! |-----------|---------| -//! | `x86` | 4 bytes | -//! | `x86_64` | 8 bytes | -//! | `arm` | 4 bytes | -//! | `aarch64` | 8 bytes | -//! | `riscv32` | 4 bytes | -//! | `riscv64` | 8 bytes | +//! |---------------|---------| +//! | `x86` | 4 bytes | +//! | `x86_64` | 8 bytes | +//! | `arm` | 4 bytes | +//! | `aarch64` | 8 bytes | +//! | `riscv32` | 4 bytes | +//! | `riscv64` | 8 bytes | +//! | `powerpc64le` | 8 bytes | //! //! Any atomic `load` on read-only memory larger than the given size are Undefined Behavior. For //! architectures not listed above, all atomic `load` on read-only memory are Undefined Behavior. |
