libm/math/support/
mod.rs

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};
14pub use env::{FpResult, Round, Status};
15#[allow(unused_imports)]
16pub use float_traits::{DFloat, Float, HFloat, IntTy};
17pub(crate) use float_traits::{f32_from_bits, f64_from_bits};
18#[cfg(f16_enabled)]
19#[allow(unused_imports)]
20pub use hex_float::hf16;
21#[cfg(f128_enabled)]
22#[allow(unused_imports)]
23pub use hex_float::hf128;
24#[allow(unused_imports)]
25pub use hex_float::{Hexf, hf32, hf64};
26pub use int_traits::{CastFrom, CastInto, DInt, HInt, Int, MinInt};
27
28/// Hint to the compiler that the current path is cold.
29pub fn cold_path() {
30    #[cfg(intrinsics_enabled)]
31    core::intrinsics::cold_path();
32}