|
178 | 178 | //!
|
179 | 179 | //! | `target_arch` | Size limit |
|
180 | 180 | //! |---------------|---------|
|
181 |
| -//! | `x86`, `arm`, `mips`, `mips32r6`, `powerpc`, `riscv32`, `sparc`, `hexagon` | 4 bytes | |
| 181 | +//! | `x86`, `arm`, `loongarch32`, `mips`, `mips32r6`, `powerpc`, `riscv32`, `sparc`, `hexagon` | 4 bytes | |
182 | 182 | //! | `x86_64`, `aarch64`, `loongarch64`, `mips64`, `mips64r6`, `powerpc64`, `riscv64`, `sparc64`, `s390x` | 8 bytes |
|
183 | 183 | //!
|
184 | 184 | //! Atomics loads that are larger than this limit as well as atomic loads with ordering other
|
@@ -350,8 +350,12 @@ pub type Atomic<T> = <T as AtomicPrimitive>::AtomicInner;
|
350 | 350 | // This list should only contain architectures which have word-sized atomic-or/
|
351 | 351 | // atomic-and instructions but don't natively support byte-sized atomics.
|
352 | 352 | #[cfg(target_has_atomic = "8")]
|
353 |
| -const EMULATE_ATOMIC_BOOL: bool = |
354 |
| - cfg!(any(target_arch = "riscv32", target_arch = "riscv64", target_arch = "loongarch64")); |
| 353 | +const EMULATE_ATOMIC_BOOL: bool = cfg!(any( |
| 354 | + target_arch = "riscv32", |
| 355 | + target_arch = "riscv64", |
| 356 | + target_arch = "loongarch32", |
| 357 | + target_arch = "loongarch64" |
| 358 | +)); |
355 | 359 |
|
356 | 360 | /// A boolean type which can be safely shared between threads.
|
357 | 361 | ///
|
|
0 commit comments