Skip to content

Commit 6605116

Browse files
committed
use target-arch based table
1 parent 9d8506d commit 6605116

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

library/core/src/sync/atomic.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,11 @@
100100
//! Undefined Behavior. The exact size limit for what makes a load "sufficiently small" varies
101101
//! depending on the target:
102102
//!
103-
//! | Target triple prefix (regular expression) | Size limit |
103+
//! | `target_arch` | Size limit |
104104
//! |---------------|---------|
105-
//! | `i(3|5|6)86-`, `arm`, `thumb`, `mips(|el)-`, `powerpc-`, `riscv32`, `sparc-` | 4 bytes |
106-
//! | `x86_64-`, `aarch64-`, `loongarch64-`, `mips64(|el)-`, `powerpc64-`, `riscv64` | 8 bytes |
107-
//! | `powerpc64le-` | 16 bytes |
108-
//! | `s390x-` | 16 bytes |
105+
//! | `x86`, `arm`, `mips`, `mips32r6, `powerpc`, `riscv32`, `sparc`, `hexagon` | 4 bytes |
106+
//! | `x86_64`, `aarch64`, `loongarch64`, `mips64`, `mips64r6`, `powerpc64`, `riscv64`, `sparc64` | 8 bytes |
107+
//! | `s390x`, `powerpc64` with `target_feature = "quadword-atomics"` | 16 bytes |
109108
//!
110109
//! Atomics loads that are larger than this limit as well as atomic loads with ordering other
111110
//! than `Relaxed`, as well as *all* atomic loads on targets not listed in the table, might still be

0 commit comments

Comments
 (0)