Specialize float_info for __float128

This commit is contained in:
Victor Zverovich 2022-03-19 08:39:16 -07:00
parent f024565c3f
commit 71778e8b90

View File

@ -1271,7 +1271,8 @@ template <> struct float_info<double> {
// An 80- or 128-bit floating point number.
template <typename T>
struct float_info<T, enable_if_t<std::numeric_limits<T>::digits == 64 ||
std::numeric_limits<T>::digits == 113>> {
std::numeric_limits<T>::digits == 113 ||
is_float128<T>::value>> {
using carrier_uint = detail::uint128_t;
static const int exponent_bits = 15;
};