1 | //! libm in pure Rust |
2 | #![no_std ] |
3 | #![cfg_attr (intrinsics_enabled, allow(internal_features))] |
4 | #![cfg_attr (intrinsics_enabled, feature(core_intrinsics))] |
5 | #![cfg_attr ( |
6 | all(intrinsics_enabled, target_family = "wasm" ), |
7 | feature(wasm_numeric_instr) |
8 | )] |
9 | #![cfg_attr (f128_enabled, feature(f128))] |
10 | #![cfg_attr (f16_enabled, feature(f16))] |
11 | #![allow (clippy::assign_op_pattern)] |
12 | #![allow (clippy::deprecated_cfg_attr)] |
13 | #![allow (clippy::eq_op)] |
14 | #![allow (clippy::excessive_precision)] |
15 | #![allow (clippy::float_cmp)] |
16 | #![allow (clippy::int_plus_one)] |
17 | #![allow (clippy::just_underscores_and_digits)] |
18 | #![allow (clippy::many_single_char_names)] |
19 | #![allow (clippy::mixed_case_hex_literals)] |
20 | #![allow (clippy::needless_late_init)] |
21 | #![allow (clippy::needless_return)] |
22 | #![allow (clippy::unreadable_literal)] |
23 | #![allow (clippy::zero_divided_by_zero)] |
24 | #![forbid (unsafe_op_in_unsafe_fn)] |
25 | |
26 | mod libm_helper; |
27 | mod math; |
28 | |
29 | use core::{f32, f64}; |
30 | |
31 | pub use libm_helper::*; |
32 | |
33 | pub use self::math::*; |
34 | |