Debian Codegraph @

debian/rust-vendor/portable-atomic/src/imp/atomic64/mod.rs

raw
1 // SPDX-License-Identifier: Apache-2.0 OR MIT
2
3 /*
4 64-bit atomic implementations on 32-bit architectures
5
6 See README.md for details.
7 */
8
9 // pre-v6 Arm Linux
10 // Miri and Sanitizer do not support inline assembly.
11 #[cfg(all(
12 feature = "fallback",
13 target_arch = "arm",
14 not(any(miri, portable_atomic_sanitize_thread)),
15 any(not(portable_atomic_no_asm), portable_atomic_unstable_asm),
16 any(target_os = "linux", target_os = "android"),
17 any(test, not(any(target_feature = "v6", portable_atomic_target_feature = "v6"))),
18 not(portable_atomic_no_outline_atomics),
19 ))]
20 #[cfg_attr(portable_atomic_no_cfg_target_has_atomic, cfg(any(test, portable_atomic_no_atomic_64)))]
21 #[cfg_attr(
22 not(portable_atomic_no_cfg_target_has_atomic),
23 cfg(any(test, not(target_has_atomic = "64")))
24 )]
25 pub(super) mod arm_linux;
26
27 // riscv32
28 // Miri and Sanitizer do not support inline assembly.
29 #[cfg(all(
30 target_arch = "riscv32",
31 not(any(miri, portable_atomic_sanitize_thread)),
32 any(not(portable_atomic_no_asm), portable_atomic_unstable_asm),
33 any(
34 target_feature = "zacas",
35 portable_atomic_target_feature = "zacas",
36 all(
37 feature = "fallback",
38 not(portable_atomic_no_outline_atomics),
39 any(target_os = "linux", target_os = "android"),
40 ),
41 ),
42 ))]
43 pub(super) mod riscv32;