1 // Copyright John Maddock 2008. 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) 5 // 6 # include <pch.hpp> 7 #ifndef BOOST_MATH_TR1_SOURCE 8 # define BOOST_MATH_TR1_SOURCE 9 #endif 10 #include <boost/math/tr1.hpp> 11 #include <boost/math/special_functions/fpclassify.hpp> 12 #include "c_policy.hpp" 13 BOOST_PREVENT_MACRO_SUBSTITUTION(long double x,long double y)14extern "C" long double BOOST_MATH_TR1_DECL boost_fminl BOOST_PREVENT_MACRO_SUBSTITUTION(long double x, long double y) BOOST_MATH_C99_THROW_SPEC 15 { 16 if((boost::math::isnan)(x)) 17 return y; 18 if((boost::math::isnan)(y)) 19 return x; 20 return (std::min)(x, y); 21 } 22 23 24