Skip to content

Commit 9aae2f8

Browse files
authored
Merge pull request #742 from boostorg/update_docs
2 parents 53a0e59 + d19b4b8 commit 9aae2f8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/tutorial_cpp_double_fp_backend.qbk

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323

2424
} } // namespaces
2525

26-
The `cpp_double_fp_backend` back-end is the sum of two IEEE floating-point numbers
27-
combined to create a type having a composite width rougly twice that as one of its parts.
26+
The `cpp_double_fp_backend` back-end is a relatively simple two-limb backend type.
27+
It is composed of the sum of two IEEE floating-point numbers.
28+
These are combined to create a type having a composite width rougly twice that as one of its parts.
2829
The `cpp_double_fp_backend` back-end is used in conjunction with `number`
2930
and acts as an entirely C++ header only floating-point number type.
3031

@@ -70,8 +71,8 @@ Things you should know when using the `cpp_double_fp_backend` types:
7071
* The types can not be used with certain compiler variations of _fast_-_math_. On GCC/clang, for instance, `-ffast-math` can not be used (use either the default or explicitly set `-fno-fast-math`). On MSVC `/fp:fast` can not be used and `/fp:precise` (the default) is mandatory on MSVC compilers. This is because the algorithms, in particular those for addition, subtraction, multiplication, division and square root, rely on precise floating-point rounding.
7172
* The composite types are not as precise as their constituents. For information on error-bounds, see Joldes et al. in the references below.
7273
* There are `std::numeric_limits` specializations for these types.
73-
* Large parts (but not all) of the `cpp_double_fp_backend` implementation are `constexpr`. Future evolution is anticipated to make this library entirely `constexpr`.
74-
* Conversions to and from string internally use an intermediate `cpp_bin_float` value (which is a bit awkward may be eliminated in future refinements).
74+
* Almost all of the methods of the `cpp_double_fp_backend` implementation are `constexpr`. The sole exception is read-from-string, which is not yet `constexpr`, but may become so in future evolution.
75+
* Conversions to and from string internally use an intermediate `cpp_bin_float` value. This is a bit awkward may be eliminated in future refinements.
7576

7677
The `cpp_double_fp_backend` back-end has been inspired by original works and types.
7778
These include the historical `doubledouble` and more, as listed below.

test/test_cpp_double_float_bessel_versus_bin_and_dec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ auto do_trials(const std::size_t trial_count) -> void
345345

346346
std::size_t count { UINT8_C(0) };
347347

348-
constexpr dbl_float_type tol_dbl { std::numeric_limits<dbl_float_type>::epsilon() * 0x400000 };
348+
constexpr dbl_float_type tol_dbl { std::numeric_limits<dbl_float_type>::epsilon() * 0x1000000 };
349349

350350
for(const auto& lhs : dbl_float_c_vec)
351351
{

0 commit comments

Comments
 (0)