From dff806a50a30bd97797c0eb37100134947e330f1 Mon Sep 17 00:00:00 2001 From: Lukas Riebel <60060564+quxflux@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:12:33 +0200 Subject: [PATCH] make boost::math::ccmath::fminf and boost::math::ccmath::fminl constexpr --- include/boost/math/ccmath/fmin.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/math/ccmath/fmin.hpp b/include/boost/math/ccmath/fmin.hpp index 4d0dc229ed..1c113e0d6e 100644 --- a/include/boost/math/ccmath/fmin.hpp +++ b/include/boost/math/ccmath/fmin.hpp @@ -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); }