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