Maximum of half expressions. See also:** Documentation for [std::fmax](https://en.cppreference.com/w/cpp/numeric/math/fmax). \param x first operand \param y second operand \return maximum of operands, ignoring quiet NaNs \exception FE_INVALID if \a x or \a y is signaling NaN
| 2875 | /// \return maximum of operands, ignoring quiet NaNs |
| 2876 | /// \exception FE_INVALID if \a x or \a y is signaling NaN |
| 2877 | inline HALF_CONSTEXPR_NOERR half fmax(half x, half y) |
| 2878 | { |
| 2879 | return half(detail::binary, (!isnan(y) && (isnan(x) || (x.data_^(0x8000|(0x8000-(x.data_>>15)))) < |
| 2880 | (y.data_^(0x8000|(0x8000-(y.data_>>15)))))) ? detail::select(y.data_, x.data_) : detail::select(x.data_, y.data_)); |
| 2881 | } |
| 2882 | |
| 2883 | /// Minimum of half expressions. |
| 2884 | /// **See also:** Documentation for [std::fmin](https://en.cppreference.com/w/cpp/numeric/math/fmin). |