mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-12-05 00:46:55 +00: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>
|
||||
using is_supported = bool_constant<sizeof(Float) == sizeof(uint32_t) ||
|
||||
sizeof(Float) == 2 * sizeof(uint32_t) ||
|
||||
std::numeric_limits<Float>::digits == 64>;
|
||||
using is_supported =
|
||||
bool_constant<sizeof(Float) == sizeof(uint32_t) ||
|
||||
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.
|
||||
template <typename Float, FMT_ENABLE_IF(is_supported<Float>::value)>
|
||||
|
Loading…
Reference in New Issue
Block a user