Skip to content

Commit 24b9406

Browse files
authored
Merge pull request #936 from cppalliance/misc_in_flight_improvements
Misc testing and doc improvements
2 parents 65b5606 + 0cff8e9 commit 24b9406

File tree

16 files changed

+57
-45
lines changed

16 files changed

+57
-45
lines changed

doc/modules/ROOT/nav.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
* xref:literals.adoc[]
1515
* xref:numbers.adoc[]
1616
* xref:cmath.adoc[]
17+
** xref:cmath.adoc#non_standard_cmath[Non-Standard Functions]
1718
* xref:cstdlib.adoc[]
1819
* xref:charconv.adoc[]
1920
* xref:format.adoc[]
21+
** xref:format.adoc#std_format[`<format>`]
22+
** xref:format.adoc#fmt_format[`<fmt/format.h>`]
2023
* xref:cfenv.adoc[]
2124
* xref:cfloat.adoc[]
2225
* xref:cstdio.adoc[]

doc/modules/ROOT/pages/api_reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ enums, constants and macros that are provided in this library.
1717

1818
- xref:decimal32_t.adoc[decimal32_t]
1919
- xref:decimal64_t.adoc[decimal64_t]
20-
- xref:decimal128_t.adoc[decima128]
20+
- xref:decimal128_t.adoc[decima128_t]
2121

2222
=== Non-IEEE 754 Compliant Types
2323

doc/modules/ROOT/pages/cfenv.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ https://www.boost.org/LICENSE_1_0.txt
55
////
66

77
[#cfenv]
8-
= cfenv support
8+
= `<cfenv>` support
99
:idprefix: cfenv_
1010

1111
== <cfenv>

doc/modules/ROOT/pages/cfloat.adoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ https://www.boost.org/LICENSE_1_0.txt
55
////
66

77
[#cfloat]
8-
= cfloat support
8+
= `<cfloat>` support
99
:idprefix: cfloat_
1010

11-
== <cfloat>
12-
13-
The following macros analogous to those from <cfloat> for the decimal floating point types:
11+
The following macros analogous to those from `<cfloat>` for the decimal floating point types:
1412

1513
[source, c++]
1614
----
@@ -50,8 +48,11 @@ Additionally `BOOST_DECIMAL_DEC_EVAL_METHOD` is similar to `FLT_EVAL_METHOD`: ht
5048

5149
The valid values are:
5250

53-
- 0: all operations evaluated in the range and precision of the native type
54-
- 1: all `decimal32_t` operations are evaluated with the precision and range of `decimal64_t` internally, and returned as `decimal64_t`
55-
- 2: all `decimal32_t` and `decimal64_t` operations are evaluated with the precision and range of `decimal128_t` internally, and returned as the original type.
51+
|===
52+
| Value | Description
53+
| 0 | All operations evaluated in the range and precision of the native type
54+
| 1 | All `decimal32_t` (or `decimal_fast32_t`) operations are evaluated with the precision and range of `decimal64_t` internally, and returned as `decimal64_t`
55+
| 2 | All `decimal32_t` and `decimal64_t` (or fast equivalents) operations are evaluated with the precision and range of `decimal128_t` internally, and returned as the original type.
56+
|===
5657

57-
To use the functionallity you must `#define BOOST_DECIMAL_DEC_EVAL_METHOD` to the value you want before you `#include <boost/decimal.hpp>`.
58+
To use the functionality you must `#define BOOST_DECIMAL_DEC_EVAL_METHOD` to the value you want before you `#include <boost/decimal.hpp>`.

doc/modules/ROOT/pages/charconv.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ https://www.boost.org/LICENSE_1_0.txt
55
////
66

77
[#charconv]
8-
= charconv support
8+
= `<charconv>` support
99
:idprefix: charconv_
1010

1111
== <charconv>

doc/modules/ROOT/pages/cmath.adoc

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ https://www.boost.org/LICENSE_1_0.txt
55
////
66

77
[#cmath]
8-
= cmath support
8+
= `<cmath>` support
99
:idprefix: cmath_
1010

11-
== <cmath>
12-
1311
Decimal contains overloads for all functions from `<cmath>`, and they have the same handling as built-in floating point types.
1412
They are also all constexpr with C\\++14 unlike the built-in floating point types which require either C++23 or 26.
1513
Additionally, all functions are marked `noexcept`.
1614

17-
=== Basic Operations
15+
== Basic Operations
1816

1917
|===
2018
| Function | Description
@@ -73,7 +71,7 @@ constexpr decimal128_t nand128(const char* arg) noexcept;
7371
} // namespace boost
7472
----
7573

76-
=== Exponential Functions
74+
== Exponential Functions
7775

7876
|===
7977
| Function | Description
@@ -150,7 +148,7 @@ constexpr DecimalType hypot(DecimalType x, DecimalType y, DecimalType z) noexcep
150148
} // namespace boost
151149
----
152150

153-
=== Trigonometric Functions
151+
== Trigonometric Functions
154152

155153
|===
156154
| Function | Description
@@ -194,7 +192,7 @@ constexpr DecimalType atan2(DecimalType x, DecimalType y) noexcept;
194192
----
195193

196194

197-
=== Hyperbolic Functions
195+
== Hyperbolic Functions
198196

199197
|===
200198
| Function | Description
@@ -233,7 +231,7 @@ constexpr DecimalType atanh(DecimalType x) noexcept;
233231
} // namespace boost
234232
----
235233

236-
=== Error and Gamma Functions
234+
== Error and Gamma Functions
237235

238236
|===
239237
| Function | Description
@@ -264,7 +262,7 @@ constexpr DecimalType lgamma(DecimalType x) noexcept;
264262
} // namespace boost
265263
----
266264

267-
=== Nearest integer floating point operations
265+
== Nearest integer floating point operations
268266

269267
|===
270268
| Function | Description
@@ -318,7 +316,7 @@ constexpr long long llrint(DecimalType x) noexcept;
318316
} // namespace boost
319317
----
320318

321-
=== Floating point manipulation functions
319+
== Floating point manipulation functions
322320

323321
|===
324322
| Function | Description
@@ -373,7 +371,7 @@ constexpr DecimalType copysign(DecimalType mag, DecimalType sgn) noexcept;
373371
} // namespace boost
374372
----
375373

376-
=== Classification and comparison
374+
== Classification and comparison
377375

378376
|===
379377
| Function | Description
@@ -496,6 +494,7 @@ constexpr DecimalType riemann_zeta(IntegralType n) noexcept;
496494
} //namespace boost
497495
----
498496

497+
[#non_standard_cmath]
499498
== Non-standard Functions
500499

501500
The following are convenience functions, or are prescribed in IEEE 754-2019 as required for decimal floating point types.

doc/modules/ROOT/pages/cstdio.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ https://www.boost.org/LICENSE_1_0.txt
55
////
66

77
[#cstdio]
8-
= cstdio support
8+
= `<cstdio>` support
99
:idprefix: cstdio_
1010

11-
== <cstdio>
12-
13-
The following functions analogous to those from <cstdio> are provided:
11+
The following functions analogous to those from `<cstdio>` are provided:
1412

1513
[source, c++]
1614
----

doc/modules/ROOT/pages/cstdlib.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ https://www.boost.org/LICENSE_1_0.txt
55
////
66

77
[#cstdlib]
8-
= cstdlib support
8+
= `<cstdlib>` support
99
:idprefix: cstdlib_
1010

11-
== <cstdlib>
12-
1311
The following functions analogous to those from `<cstdlib>` are provided:
1412

1513
[source, c++]

doc/modules/ROOT/pages/decimal128_t.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ https://www.boost.org/LICENSE_1_0.txt
1010

1111
== Description
1212

13-
decimal128_t is the 128-bit version of the decimal interchange format, and has the following properties as defined in IEEE 754-2019 table 3.6
13+
`decimal128_t` is the 128-bit version of the decimal interchange format, and has the following properties as defined in IEEE 754-2019 table 3.6
1414

1515
|===
1616
| Attribute | values

doc/modules/ROOT/pages/decimal32_t.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ https://www.boost.org/LICENSE_1_0.txt
1010

1111
== Description
1212

13-
decimal32_t is the 32-bit version of the decimal interchange format, and has the following properties as defined in IEEE 754-2019 table 3.6
13+
`decimal32_t` is the 32-bit version of the decimal interchange format, and has the following properties as defined in IEEE 754-2019 table 3.6
1414

1515
|===
1616
| Attribute | values

0 commit comments

Comments
 (0)