|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51299 - in trunk: boost/spirit/home/karma/numeric/detail libs/spirit/test/qi
From: juergen.hunold_at_[hidden]
Date: 2009-02-17 14:22:36
Author: jhunold
Date: 2009-02-17 14:22:36 EST (Tue, 17 Feb 2009)
New Revision: 51299
URL: http://svn.boost.org/trac/boost/changeset/51299
Log:
Fix: rename "boost::math" to "boost::spirit::math".
Text files modified:
trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 24 ++++++++++++------------
trunk/libs/spirit/test/qi/real.cpp | 4 ++--
2 files changed, 14 insertions(+), 14 deletions(-)
Modified: trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp 2009-02-17 14:22:36 EST (Tue, 17 Feb 2009)
@@ -75,17 +75,17 @@
inline float absolute_value (float n)
{
- return boost::math::signbit(n) ? boost::math::changesign(n) : n;
+ return boost::spirit::math::signbit(n) ? boost::spirit::math::changesign(n) : n;
}
inline double absolute_value (double n)
{
- return boost::math::signbit(n) ? boost::math::changesign(n) : n;
+ return boost::spirit::math::signbit(n) ? boost::spirit::math::changesign(n) : n;
}
inline long double absolute_value (long double n)
{
- return boost::math::signbit(n) ? boost::math::changesign(n) : n;
+ return boost::spirit::math::signbit(n) ? boost::spirit::math::changesign(n) : n;
}
template <typename T>
@@ -98,17 +98,17 @@
///////////////////////////////////////////////////////////////////////
inline bool is_negative(float n)
{
- return boost::math::signbit(n);
+ return boost::spirit::math::signbit(n);
}
inline bool is_negative(double n)
{
- return boost::math::signbit(n);
+ return boost::spirit::math::signbit(n);
}
inline bool is_negative(long double n)
{
- return boost::math::signbit(n);
+ return boost::spirit::math::signbit(n);
}
template <typename T>
@@ -120,17 +120,17 @@
///////////////////////////////////////////////////////////////////////
inline bool is_zero(float n)
{
- return boost::math::fpclassify(n) == FP_ZERO;
+ return boost::spirit::math::fpclassify(n) == FP_ZERO;
}
inline bool is_zero(double n)
{
- return boost::math::fpclassify(n) == FP_ZERO;
+ return boost::spirit::math::fpclassify(n) == FP_ZERO;
}
inline bool is_zero(long double n)
{
- return boost::math::fpclassify(n) == FP_ZERO;
+ return boost::spirit::math::fpclassify(n) == FP_ZERO;
}
template <typename T>
@@ -486,7 +486,7 @@
static bool
call (OutputIterator& sink, float n, RealPolicies const& p)
{
- int fpclass = boost::math::fpclassify(n);
+ int fpclass = boost::spirit::math::fpclassify(n);
if (FP_NAN == fpclass)
return RealPolicies::template nan<force_sign, Tag>(sink, n);
else if (FP_INFINITE == fpclass)
@@ -498,7 +498,7 @@
static bool
call (OutputIterator& sink, double n, RealPolicies const& p)
{
- int fpclass = boost::math::fpclassify(n);
+ int fpclass = boost::spirit::math::fpclassify(n);
if (FP_NAN == fpclass)
return RealPolicies::template nan<force_sign, Tag>(sink, n);
else if (FP_INFINITE == fpclass)
@@ -510,7 +510,7 @@
static bool
call (OutputIterator& sink, long double n, RealPolicies const& p)
{
- int fpclass = boost::math::fpclassify(n);
+ int fpclass = boost::spirit::math::fpclassify(n);
if (FP_NAN == fpclass)
return RealPolicies::template nan<force_sign, Tag>(sink, n);
else if (FP_INFINITE == fpclass)
Modified: trunk/libs/spirit/test/qi/real.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/real.cpp (original)
+++ trunk/libs/spirit/test/qi/real.cpp 2009-02-17 14:22:36 EST (Tue, 17 Feb 2009)
@@ -238,8 +238,8 @@
BOOST_TEST(!test("-1.2e", double_));
BOOST_TEST(!test_attr("-1.2e", double_, d));
- using boost::math::fpclassify;
- using boost::math::signbit;
+ using boost::spirit::math::fpclassify;
+ using boost::spirit::math::signbit;
BOOST_TEST(test("-inf", double_));
BOOST_TEST(test("-infinity", double_));
BOOST_TEST(test_attr("-inf", double_, d) &&
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk