Struct diyfp
Defined in File json.hpp
Struct Documentation
-
struct diyfp
Public Functions
-
inline constexpr diyfp(std::uint64_t f_, int e_) noexcept
Public Static Functions
-
static inline diyfp sub(const diyfp &x, const diyfp &y) noexcept
returns x - y
- Pre:
x.e == y.e and x.f >= y.f
-
static inline diyfp mul(const diyfp &x, const diyfp &y) noexcept
returns x * y
Note
The result is rounded. (Only the upper q bits are returned.)
Public Static Attributes
-
static constexpr int kPrecision = 64
-
inline constexpr diyfp(std::uint64_t f_, int e_) noexcept