Skip to content

Commit 07b8c10

Browse files
committed
add general powerpc64le bound
(some powerpc64le targets can guarantee more, but for now it doesn't seem worth separating by OS/vendor)
1 parent 7453235 commit 07b8c10

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

library/core/src/sync/atomic.rs

+8-7
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@
9292
//! "sufficiently small" depends on the architecture:
9393
//!
9494
//! | Target architecture | Maximal atomic `load` size that is guaranteed read-only |
95-
//! |-----------|---------|
96-
//! | `x86` | 4 bytes |
97-
//! | `x86_64` | 8 bytes |
98-
//! | `arm` | 4 bytes |
99-
//! | `aarch64` | 8 bytes |
100-
//! | `riscv32` | 4 bytes |
101-
//! | `riscv64` | 8 bytes |
95+
//! |---------------|---------|
96+
//! | `x86` | 4 bytes |
97+
//! | `x86_64` | 8 bytes |
98+
//! | `arm` | 4 bytes |
99+
//! | `aarch64` | 8 bytes |
100+
//! | `riscv32` | 4 bytes |
101+
//! | `riscv64` | 8 bytes |
102+
//! | `powerpc64le` | 8 bytes |
102103
//!
103104
//! Any atomic `load` on read-only memory larger than the given size are Undefined Behavior. For
104105
//! architectures not listed above, all atomic `load` on read-only memory are Undefined Behavior.

0 commit comments

Comments
 (0)