update boost
This commit is contained in:
@@ -273,7 +273,6 @@ interval<T, Policies> nth_root(interval<T, Policies> const &x, int k)
|
||||
if (interval_lib::detail::test_input(x)) return I::empty();
|
||||
assert(k > 0);
|
||||
if (k == 1) return x;
|
||||
typename Policies::rounding rnd;
|
||||
typedef typename interval_lib::unprotect<I>::type R;
|
||||
if (!interval_lib::user::is_pos(x.upper())) {
|
||||
if (interval_lib::user::is_zero(x.upper())) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#ifndef BOOST_NUMERIC_INTERVAL_DETAIL_BCC_ROUNDING_CONTROL_HPP
|
||||
#define BOOST_NUMERIC_INTERVAL_DETAIL_BCC_ROUNDING_CONTROL_HPP
|
||||
|
||||
#ifndef __BORLANDC__
|
||||
#if !defined(__BORLANDC__) || defined(__clang__)
|
||||
# error This header is only intended for Borland C++.
|
||||
#endif
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#ifndef BOOST_NUMERIC_INTERVAL_DETAIL_X86_ROUNDING_CONTROL_HPP
|
||||
#define BOOST_NUMERIC_INTERVAL_DETAIL_X86_ROUNDING_CONTROL_HPP
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) || defined(__BORLANDC__) && defined(__clang__)
|
||||
# include <boost/numeric/interval/detail/x86gcc_rounding_control.hpp>
|
||||
#elif defined(__BORLANDC__)
|
||||
# include <boost/numeric/interval/detail/bcc_rounding_control.hpp>
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
#ifndef BOOST_NUMERIC_INTERVAL_DETAIL_X86GCC_ROUNDING_CONTROL_HPP
|
||||
#define BOOST_NUMERIC_INTERVAL_DETAIL_X86GCC_ROUNDING_CONTROL_HPP
|
||||
|
||||
#ifndef __GNUC__
|
||||
#if !defined(__GNUC__) && !(defined(__BORLANDC__) && defined(__clang__))
|
||||
# error This header only works with GNU CC.
|
||||
#endif
|
||||
|
||||
#ifndef __i386__
|
||||
#if !defined(__i386__) && !defined(__x86_64__)
|
||||
# error This header only works on x86 CPUs.
|
||||
#endif
|
||||
|
||||
|
||||
@@ -11,15 +11,16 @@
|
||||
#ifndef BOOST_NUMERIC_INTERVAL_HW_ROUNDING_HPP
|
||||
#define BOOST_NUMERIC_INTERVAL_HW_ROUNDING_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/numeric/interval/rounding.hpp>
|
||||
#include <boost/numeric/interval/rounded_arith.hpp>
|
||||
|
||||
#define BOOST_NUMERIC_INTERVAL_NO_HARDWARE
|
||||
|
||||
// define appropriate specialization of rounding_control for built-in types
|
||||
#if defined(__x86_64__) && (defined(__USE_ISOC99) || defined(__APPLE__))
|
||||
#if defined(__x86_64__) && !defined(BOOST_NO_FENV_H)
|
||||
# include <boost/numeric/interval/detail/c99_rounding_control.hpp>
|
||||
#elif defined(__i386__) || defined(_M_IX86) || defined(__BORLANDC__) || defined(_M_X64)
|
||||
#elif defined(__i386__) || defined(_M_IX86) || defined(__BORLANDC__) && !defined(__clang__) || defined(_M_X64)
|
||||
# include <boost/numeric/interval/detail/x86_rounding_control.hpp>
|
||||
#elif defined(__i386) && defined(__SUNPRO_CC)
|
||||
# include <boost/numeric/interval/detail/x86_rounding_control.hpp>
|
||||
@@ -33,7 +34,7 @@
|
||||
# include <boost/numeric/interval/detail/ia64_rounding_control.hpp>
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_NUMERIC_INTERVAL_NO_HARDWARE) && (defined(__USE_ISOC99) || defined(__MSL__))
|
||||
#if defined(BOOST_NUMERIC_INTERVAL_NO_HARDWARE) && !defined(BOOST_NO_FENV_H)
|
||||
# include <boost/numeric/interval/detail/c99_rounding_control.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user