/usr/include/boost/math/tools
NameSizeModeActions
detail/-0755rm
atomic.hpp32550644editdlrm
big_constant.hpp34120644editdlrm
bivariate_statistics.hpp28580644editdlrm
complex.hpp17440644editdlrm
condition_numbers.hpp34980644editdlrm
config.hpp145790644editdlrm
convert_from_string.hpp16560644editdlrm
cxx03_warn.hpp51280644editdlrm
fraction.hpp87330644editdlrm
minima.hpp43190644editdlrm
norms.hpp164250644editdlrm
numerical_differentiation.hpp5330644editdlrm
polynomial.hpp219460644editdlrm
polynomial_gcd.hpp60440644editdlrm
precision.hpp141330644editdlrm
promotion.hpp84340644editdlrm
rational.hpp138090644editdlrm
real_cast.hpp7440644editdlrm
recurrence.hpp129010644editdlrm
roots.hpp343730644editdlrm
series.hpp64450644editdlrm
signal_statistics.hpp120610644editdlrm
stats.hpp20560644editdlrm
test_value.hpp55230644editdlrm
toms748_solve.hpp183290644editdlrm
traits.hpp30010644editdlrm
tuple.hpp20400644editdlrm
univariate_statistics.hpp124650644editdlrm
user.hpp26360644editdlrm
workaround.hpp10670644editdlrm
Edit: /usr/include/boost/math/tools/big_constant.hpp (3412B)
// Copyright (c) 2011 John Maddock // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MATH_TOOLS_BIG_CONSTANT_HPP #define BOOST_MATH_TOOLS_BIG_CONSTANT_HPP #include #ifndef BOOST_MATH_NO_LEXICAL_CAST #include #endif #include #include #include namespace boost{ namespace math{ namespace tools{ template struct numeric_traits : public std::numeric_limits< T > {}; #ifdef BOOST_MATH_USE_FLOAT128 typedef __float128 largest_float; #define BOOST_MATH_LARGEST_FLOAT_C(x) x##Q template <> struct numeric_traits<__float128> { static const int digits = 113; static const int digits10 = 33; static const int max_exponent = 16384; static const bool is_specialized = true; }; #else typedef long double largest_float; #define BOOST_MATH_LARGEST_FLOAT_C(x) x##L #endif template inline BOOST_CONSTEXPR_OR_CONST T make_big_value(largest_float v, const char*, boost::true_type const&, boost::false_type const&) BOOST_MATH_NOEXCEPT(T) { return static_cast(v); } template inline BOOST_CONSTEXPR_OR_CONST T make_big_value(largest_float v, const char*, boost::true_type const&, boost::true_type const&) BOOST_MATH_NOEXCEPT(T) { return static_cast(v); } #ifndef BOOST_MATH_NO_LEXICAL_CAST template inline T make_big_value(largest_float, const char* s, boost::false_type const&, boost::false_type const&) { return boost::lexical_cast(s); } #endif template inline BOOST_MATH_CONSTEXPR T make_big_value(largest_float, const char* s, boost::false_type const&, boost::true_type const&) BOOST_MATH_NOEXCEPT(T) { return T(s); } // // For constants which might fit in a long double (if it's big enough): // #define BOOST_MATH_BIG_CONSTANT(T, D, x)\ boost::math::tools::make_big_value(\ BOOST_MATH_LARGEST_FLOAT_C(x), \ BOOST_STRINGIZE(x), \ boost::integral_constant::value) && \ ((D <= boost::math::tools::numeric_traits::digits) \ || boost::is_floating_point::value \ || (boost::math::tools::numeric_traits::is_specialized && \ (boost::math::tools::numeric_traits::digits10 <= boost::math::tools::numeric_traits::digits10))) >(), \ boost::is_constructible()) // // For constants too huge for any conceivable long double (and which generate compiler errors if we try and declare them as such): // #define BOOST_MATH_HUGE_CONSTANT(T, D, x)\ boost::math::tools::make_big_value(0.0L, BOOST_STRINGIZE(x), \ boost::integral_constant::value || (boost::math::tools::numeric_traits::is_specialized && boost::math::tools::numeric_traits::max_exponent <= boost::math::tools::numeric_traits::max_exponent && boost::math::tools::numeric_traits::digits <= boost::math::tools::numeric_traits::digits)>(), \ boost::is_constructible()) }}} // namespaces #endif