Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: Apache-2.0 OR MIT
2
3 /*
4 Atomic float implementations
5 */
6
7 #![allow(clippy::float_arithmetic)]
8
9 mod int;
10
11 #[cfg(all(
12 any(target_arch = "aarch64", target_arch = "arm64ec"),
13 any(target_feature = "lsfe", portable_atomic_target_feature = "lsfe"),
14 target_feature = "neon", // for vreg
15 not(any(miri, portable_atomic_sanitize_thread)),
16 any(not(portable_atomic_no_asm), portable_atomic_unstable_asm),
17 ))]
18 mod aarch64;
19
20 #[cfg(portable_atomic_unstable_f16)]
21 cfg_has_atomic_16! {
22 pub(crate) use self::int::AtomicF16;
23 }
24 cfg_has_atomic_32! {
25 pub(crate) use self::int::AtomicF32;
26 }
27 cfg_has_atomic_64! {
28 pub(crate) use self::int::AtomicF64;
29 }
30 #[cfg(portable_atomic_unstable_f128)]
31 cfg_has_atomic_128! {
32 pub(crate) use self::int::AtomicF128;
33 }