1 // (C) Copyright Matt Borland 2022.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef BOOST_MATH_CCMATH_ISLESS_HPP
7 #define BOOST_MATH_CCMATH_ISLESS_HPP
11 #include <boost/math/tools/is_constant_evaluated.hpp>
12 #include <boost/math/ccmath/isnan.hpp>
14 namespace boost::math::ccmath {
16 template <typename T1, typename T2 = T1>
17 inline constexpr bool isless(T1 x, T2 y) noexcept
19 if (BOOST_MATH_IS_CONSTANT_EVALUATED(x))
21 if (boost::math::ccmath::isnan(x) || boost::math::ccmath::isnan(y))
39 #endif // BOOST_MATH_CCMATH_ISLESS_HPP