Skip to content

Commit 24b5d9e

Browse files
committed
Change default for DPD conversions
1 parent 299c90d commit 24b5d9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/decimal/dpd_conversion.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -954,21 +954,21 @@ constexpr auto to_dpd(DecimalType val) noexcept
954954
return to_dpd(val);
955955
}
956956

957-
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal_fast32_t>
957+
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal32_t>
958958
constexpr auto from_dpd(std::uint32_t bits) noexcept
959959
BOOST_DECIMAL_REQUIRES(detail::is_decimal_floating_point_v, DecimalType)
960960
{
961961
return from_dpd_d32<DecimalType>(bits);
962962
}
963963

964-
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal_fast64_t>
964+
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal64_t>
965965
constexpr auto from_dpd(std::uint64_t bits) noexcept
966966
BOOST_DECIMAL_REQUIRES(detail::is_decimal_floating_point_v, DecimalType)
967967
{
968968
return from_dpd_d64<DecimalType>(bits);
969969
}
970970

971-
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal_fast128_t>
971+
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal128_t>
972972
constexpr auto from_dpd(int128::uint128_t bits) noexcept
973973
BOOST_DECIMAL_REQUIRES(detail::is_decimal_floating_point_v, DecimalType)
974974
{
@@ -977,7 +977,7 @@ constexpr auto from_dpd(int128::uint128_t bits) noexcept
977977

978978
#ifdef BOOST_DECIMAL_HAS_INT128
979979

980-
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal_fast128_t>
980+
BOOST_DECIMAL_EXPORT template <typename DecimalType = decimal128_t>
981981
constexpr auto from_dpd(detail::builtin_uint128_t bits) noexcept
982982
BOOST_DECIMAL_REQUIRES(detail::is_decimal_floating_point_v, DecimalType)
983983
{

0 commit comments

Comments
 (0)