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