mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-17 00:36:54 -04:00
Fix handling of 96-bit long double with -m32
This commit is contained in:
parent
d8e1dd4ab2
commit
532a69a639
@ -245,9 +245,11 @@ struct fp {
|
|||||||
template <typename Float> explicit FMT_CONSTEXPR fp(Float n) { assign(n); }
|
template <typename Float> explicit FMT_CONSTEXPR fp(Float n) { assign(n); }
|
||||||
|
|
||||||
template <typename Float>
|
template <typename Float>
|
||||||
using is_supported = bool_constant<sizeof(Float) == sizeof(uint32_t) ||
|
using is_supported =
|
||||||
sizeof(Float) == 2 * sizeof(uint32_t) ||
|
bool_constant<sizeof(Float) == sizeof(uint32_t) ||
|
||||||
std::numeric_limits<Float>::digits == 64>;
|
sizeof(Float) == sizeof(uint64_t) ||
|
||||||
|
(sizeof(Float) == sizeof(uint128_t) &&
|
||||||
|
std::numeric_limits<Float>::digits == 64)>;
|
||||||
|
|
||||||
// Assigns d to this and return true iff predecessor is closer than successor.
|
// Assigns d to this and return true iff predecessor is closer than successor.
|
||||||
template <typename Float, FMT_ENABLE_IF(is_supported<Float>::value)>
|
template <typename Float, FMT_ENABLE_IF(is_supported<Float>::value)>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user