Skip to content

Commit bb32d6d

Browse files
committed
Update internal types to be fixed width
1 parent 98ec135 commit bb32d6d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

include/boost/decimal/decimal128_fast.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ BOOST_DECIMAL_EXPORT class decimal_fast128_t final
4444
{
4545
public:
4646
using significand_type = int128::uint128_t;
47-
using exponent_type = std::uint_fast32_t;
48-
using biased_exponent_type = std::int_fast32_t;
47+
using exponent_type = std::uint32_t;
48+
using biased_exponent_type = std::int32_t;
4949

5050
private:
5151
// Instead of having to encode and decode at every operation

include/boost/decimal/decimal32_fast.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ BOOST_DECIMAL_CONSTEXPR_VARIABLE auto d32_fast_snan = std::numeric_limits<std::u
3838
BOOST_DECIMAL_EXPORT class decimal_fast32_t final
3939
{
4040
public:
41-
using significand_type = std::uint_fast32_t;
42-
using exponent_type = std::uint_fast8_t;
43-
using biased_exponent_type = std::int_fast32_t;
41+
using significand_type = std::uint32_t;
42+
using exponent_type = std::uint8_t;
43+
using biased_exponent_type = std::int32_t;
4444

4545
private:
4646
// In regular decimal32_t we have to decode the 24 bits of the significand and the 8 bits of the exp

include/boost/decimal/decimal64_fast.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ BOOST_DECIMAL_CONSTEXPR_VARIABLE auto d64_fast_snan = std::numeric_limits<std::u
4141
BOOST_DECIMAL_EXPORT class decimal_fast64_t final
4242
{
4343
public:
44-
using significand_type = std::uint_fast64_t;
45-
using exponent_type = std::uint_fast16_t;
46-
using biased_exponent_type = std::int_fast32_t;
44+
using significand_type = std::uint64_t;
45+
using exponent_type = std::uint16_t;
46+
using biased_exponent_type = std::int32_t;
4747

4848
private:
4949
// In regular decimal64_t we have to decode the significand end exponent

0 commit comments

Comments
 (0)