1111#include < boost/decimal/decimal32_fast.hpp>
1212#include < boost/decimal/decimal64_fast.hpp>
1313#include < boost/decimal/decimal128_fast.hpp>
14+ #include < boost/decimal/uint128.hpp>
1415#include < boost/decimal/detail/concepts.hpp>
1516
1617namespace boost {
@@ -67,12 +68,12 @@ BOOST_DECIMAL_EXPORT constexpr auto from_bid_d64f(std::uint64_t bits) noexcept -
6768 return val;
6869}
6970
70- BOOST_DECIMAL_EXPORT constexpr auto to_bid_d128 (decimal128 val) noexcept -> detail:: uint128
71+ BOOST_DECIMAL_EXPORT constexpr auto to_bid_d128 (decimal128 val) noexcept -> uint128
7172{
7273 return val.bits_ ;
7374}
7475
75- BOOST_DECIMAL_EXPORT constexpr auto from_bid_d128 (detail:: uint128 bits) noexcept -> decimal128
76+ BOOST_DECIMAL_EXPORT constexpr auto from_bid_d128 (uint128 bits) noexcept -> decimal128
7677{
7778 return from_bits (bits);
7879}
@@ -84,13 +85,13 @@ BOOST_DECIMAL_EXPORT constexpr auto from_bid_d128(detail::uint128_t bits) noexce
8485}
8586#endif
8687
87- BOOST_DECIMAL_EXPORT constexpr auto to_bid_d128f (decimal128_fast val) noexcept -> detail:: uint128
88+ BOOST_DECIMAL_EXPORT constexpr auto to_bid_d128f (decimal128_fast val) noexcept -> uint128
8889{
8990 const decimal128 compliant_val {val};
9091 return to_bid_d128 (compliant_val);
9192}
9293
93- BOOST_DECIMAL_EXPORT constexpr auto from_bid_d128f (detail:: uint128 bits) noexcept -> decimal128_fast
94+ BOOST_DECIMAL_EXPORT constexpr auto from_bid_d128f (uint128 bits) noexcept -> decimal128_fast
9495{
9596 const auto compliant_val {from_bid_d128 (bits)};
9697 const decimal128_fast val {compliant_val};
@@ -126,12 +127,12 @@ BOOST_DECIMAL_EXPORT constexpr auto to_bid(decimal64_fast val) noexcept -> std::
126127 return to_bid_d64f (val);
127128}
128129
129- BOOST_DECIMAL_EXPORT constexpr auto to_bid (decimal128 val) noexcept -> detail:: uint128
130+ BOOST_DECIMAL_EXPORT constexpr auto to_bid (decimal128 val) noexcept -> uint128
130131{
131132 return to_bid_d128 (val);
132133}
133134
134- BOOST_DECIMAL_EXPORT constexpr auto to_bid (decimal128_fast val) noexcept -> detail:: uint128
135+ BOOST_DECIMAL_EXPORT constexpr auto to_bid (decimal128_fast val) noexcept -> uint128
135136{
136137 return to_bid_d128f (val);
137138}
@@ -169,14 +170,14 @@ constexpr auto from_bid<decimal64>(std::uint64_t bits) noexcept -> decimal64
169170}
170171
171172BOOST_DECIMAL_EXPORT template <typename T = decimal128_fast>
172- constexpr auto from_bid (detail:: uint128 bits) noexcept
173+ constexpr auto from_bid (uint128 bits) noexcept
173174 BOOST_DECIMAL_REQUIRES(detail::is_decimal_floating_point_v, T)
174175{
175176 return from_bid_d128f (bits);
176177}
177178
178179BOOST_DECIMAL_EXPORT template <>
179- constexpr auto from_bid<decimal128>(detail:: uint128 bits) noexcept -> decimal128
180+ constexpr auto from_bid<decimal128>(uint128 bits) noexcept -> decimal128
180181{
181182 return from_bid_d128 (bits);
182183}
0 commit comments