From 3fdc3e5ee96dca5b11d1694975a65200787eab86 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Thu, 5 Dec 2019 15:11:01 +0900 Subject: Imported Upstream version 1.66.0 --- .../special_functions/detail/bernoulli_details.hpp | 58 +--------------------- boost/math/special_functions/detail/bessel_i0.hpp | 2 +- boost/math/special_functions/detail/bessel_i1.hpp | 7 ++- 3 files changed, 8 insertions(+), 59 deletions(-) (limited to 'boost/math/special_functions/detail') diff --git a/boost/math/special_functions/detail/bernoulli_details.hpp b/boost/math/special_functions/detail/bernoulli_details.hpp index ce95034439..41a59e53c6 100644 --- a/boost/math/special_functions/detail/bernoulli_details.hpp +++ b/boost/math/special_functions/detail/bernoulli_details.hpp @@ -9,67 +9,11 @@ #include #include +#include #include #include #include -#ifdef BOOST_HAS_THREADS - -#ifndef BOOST_NO_CXX11_HDR_ATOMIC -# include -# define BOOST_MATH_ATOMIC_NS std -#if ATOMIC_INT_LOCK_FREE == 2 -typedef std::atomic atomic_counter_type; -typedef int atomic_integer_type; -#elif ATOMIC_SHORT_LOCK_FREE == 2 -typedef std::atomic atomic_counter_type; -typedef short atomic_integer_type; -#elif ATOMIC_LONG_LOCK_FREE == 2 -typedef std::atomic atomic_counter_type; -typedef long atomic_integer_type; -#elif ATOMIC_LLONG_LOCK_FREE == 2 -typedef std::atomic atomic_counter_type; -typedef long long atomic_integer_type; -#else -# define BOOST_MATH_NO_ATOMIC_INT -#endif - -#else // BOOST_NO_CXX11_HDR_ATOMIC -// -// We need Boost.Atomic, but on any platform that supports auto-linking we do -// not need to link against a separate library: -// -#define BOOST_ATOMIC_NO_LIB -#include -# define BOOST_MATH_ATOMIC_NS boost - -namespace boost{ namespace math{ namespace detail{ - -// -// We need a type to use as an atomic counter: -// -#if BOOST_ATOMIC_INT_LOCK_FREE == 2 -typedef boost::atomic atomic_counter_type; -typedef int atomic_integer_type; -#elif BOOST_ATOMIC_SHORT_LOCK_FREE == 2 -typedef boost::atomic atomic_counter_type; -typedef short atomic_integer_type; -#elif BOOST_ATOMIC_LONG_LOCK_FREE == 2 -typedef boost::atomic atomic_counter_type; -typedef long atomic_integer_type; -#elif BOOST_ATOMIC_LLONG_LOCK_FREE == 2 -typedef boost::atomic atomic_counter_type; -typedef long long atomic_integer_type; -#else -# define BOOST_MATH_NO_ATOMIC_INT -#endif - -}}} // namespaces - -#endif // BOOST_NO_CXX11_HDR_ATOMIC - -#endif // BOOST_HAS_THREADS - namespace boost{ namespace math{ namespace detail{ // // Asymptotic expansion for B2n due to diff --git a/boost/math/special_functions/detail/bessel_i0.hpp b/boost/math/special_functions/detail/bessel_i0.hpp index 7738229454..c70f42e57a 100644 --- a/boost/math/special_functions/detail/bessel_i0.hpp +++ b/boost/math/special_functions/detail/bessel_i0.hpp @@ -17,7 +17,7 @@ // Modified Bessel function of the first kind of order zero // we use the approximating forms derived in: -// "Rational Approximations for the Modified Bessel Function of the First Kind – I0(x) for Computations with Double Precision" +// "Rational Approximations for the Modified Bessel Function of the First Kind - I0(x) for Computations with Double Precision" // by Pavel Holoborodko, // see http://www.advanpix.com/2015/11/11/rational-approximations-for-the-modified-bessel-function-of-the-first-kind-i0-computations-double-precision // The actual coefficients used are our own, and extend Pavel's work to precision's other than double. diff --git a/boost/math/special_functions/detail/bessel_i1.hpp b/boost/math/special_functions/detail/bessel_i1.hpp index a6364a6cc9..3c288d72e5 100644 --- a/boost/math/special_functions/detail/bessel_i1.hpp +++ b/boost/math/special_functions/detail/bessel_i1.hpp @@ -1,6 +1,11 @@ +// Copyright (c) 2017 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) + // Modified Bessel function of the first kind of order zero // we use the approximating forms derived in: -// "Rational Approximations for the Modified Bessel Function of the First Kind – I1(x) for Computations with Double Precision" +// "Rational Approximations for the Modified Bessel Function of the First Kind - I1(x) for Computations with Double Precision" // by Pavel Holoborodko, // see http://www.advanpix.com/2015/11/12/rational-approximations-for-the-modified-bessel-function-of-the-first-kind-i1-for-computations-with-double-precision/ // The actual coefficients used are our own, and extend Pavel's work to precision's other than double. -- cgit v1.2.3