Skip to content

Commit 7453235

Browse files
committed
add ARM and RISC-V values
1 parent b5e67a0 commit 7453235

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

library/core/src/sync/atomic.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,13 @@
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 |
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 |
98102
//!
99103
//! Any atomic `load` on read-only memory larger than the given size are Undefined Behavior. For
100104
//! architectures not listed above, all atomic `load` on read-only memory are Undefined Behavior.

0 commit comments

Comments
 (0)