1/// Return the lesser of two arguments or, if either argument is NaN, the other argument.
2///
3/// This coincides with IEEE 754-2011 `minNum`. The result disregards signed zero (meaning if
4/// the inputs are -0.0 and +0.0, either may be returned).
5#[cfg(f16_enabled)]
6#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
7pub fn fminf16(x: f16, y: f16) -> f16 {
8 super::generic::fmin(x, y)
9}
10
11/// Return the lesser of two arguments or, if either argument is NaN, the other argument.
12///
13/// This coincides with IEEE 754-2011 `minNum`. The result disregards signed zero (meaning if
14/// the inputs are -0.0 and +0.0, either may be returned).
15#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
16pub fn fminf(x: f32, y: f32) -> f32 {
17 super::generic::fmin(x, y)
18}
19
20/// Return the lesser of two arguments or, if either argument is NaN, the other argument.
21///
22/// This coincides with IEEE 754-2011 `minNum`. The result disregards signed zero (meaning if
23/// the inputs are -0.0 and +0.0, either may be returned).
24#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
25pub fn fmin(x: f64, y: f64) -> f64 {
26 super::generic::fmin(x, y)
27}
28
29/// Return the lesser of two arguments or, if either argument is NaN, the other argument.
30///
31/// This coincides with IEEE 754-2011 `minNum`. The result disregards signed zero (meaning if
32/// the inputs are -0.0 and +0.0, either may be returned).
33#[cfg(f128_enabled)]
34#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
35pub fn fminf128(x: f128, y: f128) -> f128 {
36 super::generic::fmin(x, y)
37}
38
39/// Return the greater of two arguments or, if either argument is NaN, the other argument.
40///
41/// This coincides with IEEE 754-2011 `maxNum`. The result disregards signed zero (meaning if
42/// the inputs are -0.0 and +0.0, either may be returned).
43#[cfg(f16_enabled)]
44#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
45pub fn fmaxf16(x: f16, y: f16) -> f16 {
46 super::generic::fmax(x, y)
47}
48
49/// Return the greater of two arguments or, if either argument is NaN, the other argument.
50///
51/// This coincides with IEEE 754-2011 `maxNum`. The result disregards signed zero (meaning if
52/// the inputs are -0.0 and +0.0, either may be returned).
53#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
54pub fn fmaxf(x: f32, y: f32) -> f32 {
55 super::generic::fmax(x, y)
56}
57
58/// Return the greater of two arguments or, if either argument is NaN, the other argument.
59///
60/// This coincides with IEEE 754-2011 `maxNum`. The result disregards signed zero (meaning if
61/// the inputs are -0.0 and +0.0, either may be returned).
62#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
63pub fn fmax(x: f64, y: f64) -> f64 {
64 super::generic::fmax(x, y)
65}
66
67/// Return the greater of two arguments or, if either argument is NaN, the other argument.
68///
69/// This coincides with IEEE 754-2011 `maxNum`. The result disregards signed zero (meaning if
70/// the inputs are -0.0 and +0.0, either may be returned).
71#[cfg(f128_enabled)]
72#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
73pub fn fmaxf128(x: f128, y: f128) -> f128 {
74 super::generic::fmax(x, y)
75}
76