Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Cost of High-Precision Non-built-in Floating-point

Using user-defined floating-point like Boost.Multiprecision has a very high run-time cost.

To give some flavour of this:

Table 16.2. Linpack Benchmark

floating-point type

speed Mflops

double

2727

__float128

35

multiprecision::float128

35

multiprecision::cpp_bin_float_quad

6



PrevUpHomeNext