|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86293 - sandbox/multiprecision.cpp_bin_float/boost/multiprecision
From: john_at_[hidden]
Date: 2013-10-13 14:13:01
Author: johnmaddock
Date: 2013-10-13 14:13:00 EDT (Sun, 13 Oct 2013)
New Revision: 86293
URL: http://svn.boost.org/trac/boost/changeset/86293
Log:
Get cpp_bin_float compiling on Linux x64 with GCC: note some tests failsvn status
Text files modified:
sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Modified: sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp
==============================================================================
--- sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp Sun Oct 13 13:33:22 2013 (r86292)
+++ sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float.hpp 2013-10-13 14:13:00 EDT (Sun, 13 Oct 2013) (r86293)
@@ -170,17 +170,17 @@
m_sign = false;
m_exponent = 0;
- static const int cpp_bin_float<Digits, DigitBase, Allocator>::bit_count = sizeof(int) * CHAR_BIT - 1;
+ static const int bits = sizeof(int) * CHAR_BIT - 1;
int e;
eval_frexp(f, f, &e);
while(eval_get_sign(f) != 0)
{
- eval_ldexp(f, f, cpp_bin_float<Digits, DigitBase, Allocator>::bit_count);
- e -= cpp_bin_float<Digits, DigitBase, Allocator>::bit_count;
+ eval_ldexp(f, f, bits);
+ e -= bits;
int ipart;
eval_convert_to(&ipart, f);
eval_subtract(f, static_cast<f_int_type>(ipart));
- m_exponent += cpp_bin_float<Digits, DigitBase, Allocator>::bit_count;
+ m_exponent += bits;
eval_add(*this, static_cast<bf_int_type>(ipart));
}
m_exponent += e;
@@ -1087,6 +1087,8 @@
inline void eval_sqrt(cpp_bin_float<Digits, DigitBase, Allocator> &res, const cpp_bin_float<Digits, DigitBase, Allocator> &arg)
{
using default_ops::eval_integer_sqrt;
+ using default_ops::eval_bit_test;
+ using default_ops::eval_increment;
switch(arg.exponent())
{
case cpp_bin_float<Digits, DigitBase, Allocator>::exponent_zero:
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