@@ -1484,25 +1484,25 @@ struct numeric_limits<boost::decimal::decimal128_fast>
14841484 static constexpr int digits10 = digits;
14851485 static constexpr int max_digits10 = digits;
14861486 static constexpr int radix = 10 ;
1487- static constexpr int min_exponent = -6142 ;
1487+ static constexpr int min_exponent = -6143 ;
14881488 static constexpr int min_exponent10 = min_exponent;
1489- static constexpr int max_exponent = 6145 ;
1489+ static constexpr int max_exponent = 6144 ;
14901490 static constexpr int max_exponent10 = max_exponent;
14911491 static constexpr bool traps = numeric_limits<std::uint64_t >::traps;
14921492 static constexpr bool tinyness_before = true ;
14931493
14941494 // Member functions
14951495 static constexpr auto (min) () -> boost::decimal::decimal128_fast { return {1 , min_exponent}; }
1496- static constexpr auto (max) () -> boost::decimal::decimal128_fast { return {boost::decimal::detail::uint128{UINT64_C (999'999'999'999'999 ), UINT64_C (9'999'999'999'999'999'999 )}, max_exponent}; }
1497- static constexpr auto lowest () -> boost::decimal::decimal128_fast { return {boost::decimal::detail::uint128{UINT64_C (999'999'999'999'999 ), UINT64_C (9'999'999'999'999'999'999 )}, max_exponent, true }; }
1498- static constexpr auto epsilon () -> boost::decimal::decimal128_fast { return {1 , -34 }; }
1496+ static constexpr auto (max) () -> boost::decimal::decimal128_fast { return {boost::decimal::detail::uint128{UINT64_C (0b1111011010000100110111110101011011000011111000000 ), UINT64_C (0b0011011110001101100011100110001111111111111111111111111111111111 )}, max_exponent - digits + 1 }; }
1497+ static constexpr auto lowest () -> boost::decimal::decimal128_fast { return {boost::decimal::detail::uint128{UINT64_C (0b1111011010000100110111110101011011000011111000000 ), UINT64_C (0b0011011110001101100011100110001111111111111111111111111111111111 )}, max_exponent - digits + 1 , true }; }
1498+ static constexpr auto epsilon () -> boost::decimal::decimal128_fast { return {1 , -digits + 1 }; }
14991499 static constexpr auto round_error () -> boost::decimal::decimal128_fast { return epsilon (); }
15001500 static constexpr auto infinity () -> boost::decimal::decimal128_fast { return boost::decimal::direct_init_d128 (boost::decimal::detail::d128_fast_inf, 0 , false ); }
15011501 static constexpr auto quiet_NaN () -> boost::decimal::decimal128_fast { return boost::decimal::direct_init_d128 (boost::decimal::detail::d128_fast_qnan, 0 , false ); }
15021502 static constexpr auto signaling_NaN () -> boost::decimal::decimal128_fast { return boost::decimal::direct_init_d128 (boost::decimal::detail::d128_fast_snan, 0 , false ); }
1503- static constexpr auto denorm_min () -> boost::decimal::decimal128_fast { return { 1 , boost::decimal::detail::etiny_v<boost::decimal::decimal128>} ; }
1503+ static constexpr auto denorm_min () -> boost::decimal::decimal128_fast { return min () ; }
15041504};
15051505
1506- }
1506+ } // namspace std
15071507
15081508#endif // BOOST_DECIMAL_DECIMAL128_FAST_HPP
0 commit comments