1#[macro_use]
2pub mod macros;
3mod big;
4mod env;
5// Runtime feature detection requires atomics.
6#[cfg(target_has_atomic = "ptr")]
7pub(crate) mod feature_detect;
8mod float_traits;
9pub mod hex_float;
10mod int_traits;
11
12#[allow(unused_imports)]
13pub use big::{i256, u256};
14// Clippy seems to have a false positive
15#[allow(unused_imports, clippy::single_component_path_imports)]
16pub(crate) use cfg_if;
17pub use env::{FpResult, Round, Status};
18#[allow(unused_imports)]
19pub use float_traits::{DFloat, Float, HFloat, IntTy};
20pub(crate) use float_traits::{f32_from_bits, f64_from_bits};
21#[cfg(any(test, feature = "unstable-public-internals"))]
22pub use hex_float::Hexf;
23#[cfg(f16_enabled)]
24#[allow(unused_imports)]
25pub use hex_float::hf16;
26#[cfg(f128_enabled)]
27#[allow(unused_imports)]
28pub use hex_float::hf128;
29#[allow(unused_imports)]
30pub use hex_float::{hf32, hf64};
31#[allow(unused_imports)]
32pub use int_traits::{CastFrom, CastInto, DInt, HInt, Int, MinInt, NarrowingDiv};
33
34/// Hint to the compiler that the current path is cold.
35pub fn cold_path() {
36 #[cfg(intrinsics_enabled)]
37 core::intrinsics::cold_path();
38}
39