1 | #[macro_use ] |
2 | pub mod macros; |
3 | mod big; |
4 | mod env; |
5 | mod float_traits; |
6 | pub mod hex_float; |
7 | mod int_traits; |
8 | |
9 | #[allow (unused_imports)] |
10 | pub use big::{i256, u256}; |
11 | pub use env::{FpResult, Round, Status}; |
12 | #[allow (unused_imports)] |
13 | pub use float_traits::{DFloat, Float, HFloat, IntTy}; |
14 | pub(crate) use float_traits::{f32_from_bits, f64_from_bits}; |
15 | #[cfg (f16_enabled)] |
16 | #[allow (unused_imports)] |
17 | pub use hex_float::hf16; |
18 | #[cfg (f128_enabled)] |
19 | #[allow (unused_imports)] |
20 | pub use hex_float::hf128; |
21 | #[allow (unused_imports)] |
22 | pub use hex_float::{Hexf, hf32, hf64}; |
23 | pub use int_traits::{CastFrom, CastInto, DInt, HInt, Int, MinInt}; |
24 | |
25 | /// Hint to the compiler that the current path is cold. |
26 | pub fn cold_path() { |
27 | #[cfg (intrinsics_enabled)] |
28 | core::intrinsics::cold_path(); |
29 | } |
30 | |