Skip to content

Commit 556a5d2

Browse files
committed
Add section before the fast types to explain what they are
1 parent c6f0870 commit 556a5d2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

doc/decimal.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ https://www.boost.org/LICENSE_1_0.txt
1818
include::decimal/overview.adoc[]
1919
include::decimal/generic_decimal.adoc[]
2020
include::decimal/decimal32.adoc[]
21-
include::decimal/decimal32_fast.adoc[]
2221
include::decimal/decimal64.adoc[]
23-
include::decimal/decimal64_fast.adoc[]
2422
include::decimal/decimal128.adoc[]
23+
include::decimal/fast_types.adoc[]
24+
include::decimal/decimal32_fast.adoc[]
25+
include::decimal/decimal64_fast.adoc[]
2526
include::decimal/decimal128_fast.adoc[]
2627
include::decimal/conversions.adoc[]
2728
include::decimal/literals.adoc[]

doc/decimal/fast_types.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
////
2+
Copyright 2024 Matt Borland
3+
Distributed under the Boost Software License, Version 1.0.
4+
https://www.boost.org/LICENSE_1_0.txt
5+
////
6+
7+
[#fast_types]
8+
= Fast Types
9+
:idprefix: fast_types_
10+
11+
Now that we have seen the three basic types as specified in IEEE-754 there are three additional adjacent types: `decimal32_fast`, `decimal64_fast`, and `decimal128_fast`.
12+
These types yield identical computational results, but with ~3x faster performance.
13+
These types make the classic tradeoff of space for time as they require more storage width than the IEEE 754 conformant type.
14+

0 commit comments

Comments
 (0)