mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Debug ppc failure
This commit is contained in:
@ -1314,10 +1314,13 @@ struct float_info<T, enable_if_t<std::numeric_limits<T>::digits == 64 ||
|
|||||||
static const int exponent_bits = 15;
|
static const int exponent_bits = 15;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <int> constexpr int check_digits();
|
||||||
|
|
||||||
// A double-double floating point number.
|
// A double-double floating point number.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct float_info<T, enable_if_t<std::numeric_limits<T>::digits >= 106 &&
|
struct float_info<T, enable_if_t<!std::numeric_limits<T>::is_iec559 &&
|
||||||
!std::numeric_limits<T>::is_iec559>> {
|
!is_float128<T>::value>> {
|
||||||
|
static constexpr int check = check_digits<std::numeric_limits<T>::digits>();
|
||||||
using carrier_uint = detail::uint128_t;
|
using carrier_uint = detail::uint128_t;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -385,10 +385,11 @@ template <> struct numeric_limits<double_double> {
|
|||||||
} // namespace std
|
} // namespace std
|
||||||
|
|
||||||
TEST(format_impl_test, write_double_double) {
|
TEST(format_impl_test, write_double_double) {
|
||||||
auto s = std::string();
|
// TODO: restore
|
||||||
fmt::detail::write<char>(std::back_inserter(s), double_double(42), {});
|
// auto s = std::string();
|
||||||
|
// fmt::detail::write<char>(std::back_inserter(s), double_double(42), {});
|
||||||
#ifndef _MSC_VER // MSVC has an issue with specializing is_floating_point.
|
#ifndef _MSC_VER // MSVC has an issue with specializing is_floating_point.
|
||||||
EXPECT_EQ(s, "42");
|
// EXPECT_EQ(s, "42");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user