tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
fmax.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_FMAX_HPP
4#define TETL_CMATH_FMAX_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
7
8namespace etl {
9
12
17[[nodiscard]] constexpr auto fmax(float x, float y) noexcept -> float { return etl::detail::gcem::max(x, y); }
18
19[[nodiscard]] constexpr auto fmaxf(float x, float y) noexcept -> float { return etl::detail::gcem::max(x, y); }
20
21[[nodiscard]] constexpr auto fmax(double x, double y) noexcept -> double { return etl::detail::gcem::max(x, y); }
22
23[[nodiscard]] constexpr auto fmax(long double x, long double y) noexcept -> long double
24{
25 return etl::detail::gcem::max(x, y);
26}
27
28[[nodiscard]] constexpr auto fmaxl(long double x, long double y) noexcept -> long double
29{
30 return etl::detail::gcem::max(x, y);
31}
32
34
35} // namespace etl
36
37#endif // TETL_CMATH_FMAX_HPP
constexpr auto fmaxf(float x, float y) noexcept -> float
Returns the larger of two floating point arguments, treating NaNs as missing data (between a NaN and ...
Definition fmax.hpp:19
constexpr auto fmax(float x, float y) noexcept -> float
Returns the larger of two floating point arguments, treating NaNs as missing data (between a NaN and ...
Definition fmax.hpp:17
constexpr auto fmaxl(long double x, long double y) noexcept -> long double
Returns the larger of two floating point arguments, treating NaNs as missing data (between a NaN and ...
Definition fmax.hpp:28
Definition adjacent_find.hpp:8