mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-24 18:29:41 +00:00
Workaround a bug in MSVC
This commit is contained in:
parent
468c243ca8
commit
5c32aa411c
@ -260,6 +260,8 @@ inline dummy_int _isnan(...) { return dummy_int(); }
|
||||
// A handmade floating-point number f * pow(2, e).
|
||||
class fp {
|
||||
private:
|
||||
typedef uint64_t significand_type;
|
||||
|
||||
// All sizes are in bits.
|
||||
static constexpr int char_size = std::numeric_limits<unsigned char>::digits;
|
||||
// Subtract 1 to account for an implicit most significant bit in the
|
||||
@ -269,10 +271,11 @@ class fp {
|
||||
static constexpr uint64_t implicit_bit = 1ull << double_significand_size;
|
||||
|
||||
public:
|
||||
uint64_t f;
|
||||
significand_type f;
|
||||
int e;
|
||||
|
||||
static constexpr int fp_significand_size = sizeof(f) * char_size;
|
||||
static constexpr int fp_significand_size =
|
||||
sizeof(significand_type) * char_size;
|
||||
|
||||
fp(uint64_t f, int e): f(f), e(e) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user