Skip to content

Commit c76d539

Browse files
authored
Merge pull request #1266 from cppalliance/fast
Add in additional details about fast types
2 parents 90a163d + 812e1e7 commit c76d539

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/modules/ROOT/pages/fast_types.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,12 @@ In this example `a` and `b` both have different encodings (cohorts), so they mus
5050
`decimal_fast32_t` and the other fast types store the significand and exponent in a normalized fashion, so once again we can skip that step for every operation.
5151

5252
For behavior of the individual operators see the xref:generic_decimal.adoc#operator_behavior[reference section] for the IEEE decimal types.
53+
54+
== Limitations
55+
56+
. These types are not uniformly faster for all operations.
57+
One known corner case is `to_chars` with the shortest precision.
58+
Since these types are normalized they will normally have a number of trailing zeros to accomplish the normalization.
59+
In the case where we want to output the shortest precision we must identify and remove these trailing zeros.
60+
61+
. With these types no cohort information exists, as the type stores its value in a normalized fashion.

0 commit comments

Comments
 (0)