mirror of
https://github.com/boostorg/math.git
synced 2026-01-28 19:32:08 +00:00
In cstdfloat stuff, add comments and clean stuff up.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
// Implement quadruple-precision (and extended) support for <complex>.
|
||||
|
||||
#ifndef _BOOST_CSTDFLOAT_COMPLEX_2014_02_15_HPP_
|
||||
#define _BOOST_CSTDFLOAT_COMPLEX_2014_02_15_HPP_
|
||||
|
||||
|
||||
@@ -180,9 +180,9 @@
|
||||
const bool showpoint = ((f & std::ios_base::showpoint) == std::ios_base::showpoint);
|
||||
const bool showpos = ((f & std::ios_base::showpos) == std::ios_base::showpos);
|
||||
|
||||
const bool neg = str.size() && (str[0] == '-');
|
||||
const bool b_neg = ((str.size() != 0U) && (str[0] == '-'));
|
||||
|
||||
if(neg)
|
||||
if(b_neg)
|
||||
{
|
||||
str.erase(0, 1);
|
||||
}
|
||||
@@ -219,7 +219,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
if(neg)
|
||||
|
||||
if(b_neg)
|
||||
{
|
||||
str.insert(0U, 1U, '-');
|
||||
}
|
||||
@@ -272,7 +273,7 @@
|
||||
{
|
||||
if((1 + my_exp) > static_cast<int>(str.size()))
|
||||
{
|
||||
// Just pad out the end with zeros:
|
||||
// Just pad out the end with zeros.
|
||||
str.append(static_cast<size_type>((1 + my_exp) - static_cast<int>(str.size())), '0');
|
||||
|
||||
if(showpoint || fixed)
|
||||
@@ -338,7 +339,7 @@
|
||||
str.append(e);
|
||||
}
|
||||
|
||||
if(neg)
|
||||
if(b_neg)
|
||||
{
|
||||
str.insert(0U, 1U, '-');
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
// Implement the basic parts of floating-point typedefs having specified widths.
|
||||
// Implement quadruple-precision std::numeric_limits<> support.
|
||||
|
||||
#ifndef _BOOST_CSTDFLOAT_LIMITS_2014_01_09_HPP_
|
||||
#define _BOOST_CSTDFLOAT_LIMITS_2014_01_09_HPP_
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
// Implement the basic parts of floating-point typedefs having specified widths.
|
||||
// Implement the types for floating-point typedefs having specified widths.
|
||||
|
||||
#ifndef _BOOST_CSTDFLOAT_TYPES_2014_01_09_HPP_
|
||||
#define _BOOST_CSTDFLOAT_TYPES_2014_01_09_HPP_
|
||||
|
||||
Reference in New Issue
Block a user