Fix Linux build

This commit is contained in:
Wojtek Figat
2021-04-30 16:42:13 +02:00
parent 0e75dba142
commit c785f9106b
2 changed files with 5 additions and 3 deletions

View File

@@ -61,10 +61,10 @@
#endif
#include <stdint.h>
#include <stdlib.h>
//#include <array>
#include <type_traits>
#include <utility>
#include <limits>
#include <limits.h>
// Platform-specific definitions of a numeric thread ID type and an invalid value
namespace moodycamel { namespace details {

View File

@@ -303,11 +303,13 @@ class fp {
// All sizes are in bits.
static FMT_CONSTEXPR_DECL const int char_size =
std::numeric_limits<unsigned char>::digits;
8;
//std::numeric_limits<unsigned char>::digits;
// Subtract 1 to account for an implicit most significant bit in the
// normalized form.
static FMT_CONSTEXPR_DECL const int double_significand_size =
std::numeric_limits<double>::digits - 1;
52 - 1;
//std::numeric_limits<double>::digits - 1;
static FMT_CONSTEXPR_DECL const uint64_t implicit_bit =
1ull << double_significand_size;