Skip to content

Commit

Permalink
Merge pull request #862 from cppalliance/exp_type
Browse files Browse the repository at this point in the history
Document typedefs
  • Loading branch information
mborland authored Feb 17, 2025
2 parents 13c9083 + c6e5754 commit cf517ba
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/decimal/decimal128.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace decimal {
class decimal128 {
public:
using significand_type = detail::uint128;
using exponent_type = std::uint32_t;
using biased_exponent_type = std::int32_t;
// Paragraph numbers are from ISO/IEC DTR 24733
// 3.2.4.1 construct/copy/destroy
Expand Down
5 changes: 5 additions & 0 deletions doc/decimal/decimal128_fast.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace decimal {
class decimal128_fast {
public:
using significand_type = detail::uint128;
using exponent_type = std::uint_fast32_t;
using biased_exponent_type = std::int32_t;
// Paragraph numbers are from ISO/IEC DTR 24733
// 3.2.4.1 construct/copy/destroy
Expand Down
5 changes: 5 additions & 0 deletions doc/decimal/decimal32.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace decimal {
class decimal32 {
public:
using significand_type = std::uint32_t;
using exponent_type = std::uint32_t;
using biased_exponent_type = std::int32_t;
// Paragraph numbers are from ISO/IEC DTR 24733
// 3.2.2.1 construct/copy/destroy
Expand Down
5 changes: 5 additions & 0 deletions doc/decimal/decimal32_fast.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace decimal {
class decimal32_fast {
public:
using significand_type = std::uint_fast32_t;
using exponent_type = std::uint_fast8_t;
using biased_exponent_type = std::int32_t;
// Paragraph numbers are from ISO/IEC DTR 24733
// 3.2.2.1 construct/copy/destroy
Expand Down
5 changes: 5 additions & 0 deletions doc/decimal/decimal64.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace decimal {
class decimal64 {
public:
using significand_type = std::uint64_t;
using exponent_type = std::uint32_t;
using biased_exponent_type = std::int32_t;
// Paragraph numbers are from ISO/IEC DTR 24733
// 3.2.3.1 construct/copy/destroy
Expand Down
5 changes: 5 additions & 0 deletions doc/decimal/decimal64_fast.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ namespace decimal {
class decimal64_fast {
public:
using significand_type = std::uint_fast64_t;
using exponent_type = std::uint_fast16_t;
using biased_exponent_type = std::int32_t;
// Paragraph numbers are from ISO/IEC DTR 24733
// 3.2.3.1 construct/copy/destroy
Expand Down

0 comments on commit cf517ba

Please sign in to comment.