2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Merge pull request #1146 from quxflux/quxflux-patch-1

Make boost::math::ccmath::fminf and boost::math::ccmath::fminl constexpr
This commit is contained in:
Matt Borland
2024-06-14 09:59:20 -04:00
committed by GitHub

View File

@@ -72,13 +72,13 @@ constexpr auto fmin(T1 x, T2 y) noexcept
}
}
float fminf(float x, float y) noexcept
constexpr float fminf(float x, float y) noexcept
{
return boost::math::ccmath::fmin(x, y);
}
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
long double fminl(long double x, long double y) noexcept
constexpr long double fminl(long double x, long double y) noexcept
{
return boost::math::ccmath::fmin(x, y);
}