| 1 | /// Return the lesser of two arguments or, if either argument is NaN, NaN. |
| 2 | /// |
| 3 | /// This coincides with IEEE 754-2019 `minimumNumber`. The result orders -0.0 < 0.0. |
| 4 | #[cfg (f16_enabled)] |
| 5 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 6 | pub fn fminimum_numf16(x: f16, y: f16) -> f16 { |
| 7 | super::generic::fminimum_num(x, y) |
| 8 | } |
| 9 | |
| 10 | /// Return the lesser of two arguments or, if either argument is NaN, NaN. |
| 11 | /// |
| 12 | /// This coincides with IEEE 754-2019 `minimumNumber`. The result orders -0.0 < 0.0. |
| 13 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 14 | pub fn fminimum_numf(x: f32, y: f32) -> f32 { |
| 15 | super::generic::fminimum_num(x, y) |
| 16 | } |
| 17 | |
| 18 | /// Return the lesser of two arguments or, if either argument is NaN, NaN. |
| 19 | /// |
| 20 | /// This coincides with IEEE 754-2019 `minimumNumber`. The result orders -0.0 < 0.0. |
| 21 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 22 | pub fn fminimum_num(x: f64, y: f64) -> f64 { |
| 23 | super::generic::fminimum_num(x, y) |
| 24 | } |
| 25 | |
| 26 | /// Return the lesser of two arguments or, if either argument is NaN, NaN. |
| 27 | /// |
| 28 | /// This coincides with IEEE 754-2019 `minimumNumber`. The result orders -0.0 < 0.0. |
| 29 | #[cfg (f128_enabled)] |
| 30 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 31 | pub fn fminimum_numf128(x: f128, y: f128) -> f128 { |
| 32 | super::generic::fminimum_num(x, y) |
| 33 | } |
| 34 | |
| 35 | /// Return the greater of two arguments or, if either argument is NaN, NaN. |
| 36 | /// |
| 37 | /// This coincides with IEEE 754-2019 `maximumNumber`. The result orders -0.0 < 0.0. |
| 38 | #[cfg (f16_enabled)] |
| 39 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 40 | pub fn fmaximum_numf16(x: f16, y: f16) -> f16 { |
| 41 | super::generic::fmaximum_num(x, y) |
| 42 | } |
| 43 | |
| 44 | /// Return the greater of two arguments or, if either argument is NaN, NaN. |
| 45 | /// |
| 46 | /// This coincides with IEEE 754-2019 `maximumNumber`. The result orders -0.0 < 0.0. |
| 47 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 48 | pub fn fmaximum_numf(x: f32, y: f32) -> f32 { |
| 49 | super::generic::fmaximum_num(x, y) |
| 50 | } |
| 51 | |
| 52 | /// Return the greater of two arguments or, if either argument is NaN, NaN. |
| 53 | /// |
| 54 | /// This coincides with IEEE 754-2019 `maximumNumber`. The result orders -0.0 < 0.0. |
| 55 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 56 | pub fn fmaximum_num(x: f64, y: f64) -> f64 { |
| 57 | super::generic::fmaximum_num(x, y) |
| 58 | } |
| 59 | |
| 60 | /// Return the greater of two arguments or, if either argument is NaN, NaN. |
| 61 | /// |
| 62 | /// This coincides with IEEE 754-2019 `maximumNumber`. The result orders -0.0 < 0.0. |
| 63 | #[cfg (f128_enabled)] |
| 64 | #[cfg_attr (all(test, assert_no_panic), no_panic::no_panic)] |
| 65 | pub fn fmaximum_numf128(x: f128, y: f128) -> f128 { |
| 66 | super::generic::fmaximum_num(x, y) |
| 67 | } |
| 68 | |