Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/boost/decimal/detail/attributes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ BOOST_DECIMAL_CUDA_CONSTEXPR auto max_significand_v() noexcept
template <BOOST_DECIMAL_DECIMAL_FLOATING_TYPE DecimalType, std::enable_if_t<decimal_val_v<DecimalType> >= 128, bool> = true>
BOOST_DECIMAL_CUDA_CONSTEXPR auto max_significand_v() noexcept
{
// 34x 9s
return BOOST_DECIMAL_DETAIL_INT128_UINT128_C(9999999999999999999999999999999999);
// 34x 9s, constexpr so that a call at run time does not parse the literal
constexpr auto value {BOOST_DECIMAL_DETAIL_INT128_UINT128_C(9999999999999999999999999999999999)};
return value;
}

template <BOOST_DECIMAL_DECIMAL_FLOATING_TYPE DecimalType>
Expand Down
Loading