|
hoshi-lang dev
Yet another programming language
|
Public Member Functions | |
| constexpr | diyfp (std::uint64_t f_, int e_) noexcept |
Static Public Member Functions | |
| static diyfp | sub (const diyfp &x, const diyfp &y) noexcept |
| returns x - y | |
| static diyfp | mul (const diyfp &x, const diyfp &y) noexcept |
| returns x * y | |
| static diyfp | normalize (diyfp x) noexcept |
| normalize x such that the significand is >= 2^(q-1) | |
| static diyfp | normalize_to (const diyfp &x, const int target_exponent) noexcept |
| normalize x such that the result has the exponent E | |
Public Attributes | |
| std::uint64_t | f = 0 |
| int | e = 0 |
Static Public Attributes | |
| static constexpr int | kPrecision = 64 |
|
inlineconstexprnoexcept |
normalize x such that the significand is >= 2^(q-1)
Definition at line 17767 of file json.hpp.
References JSON_ASSERT.
normalize x such that the result has the exponent E
Definition at line 17784 of file json.hpp.
References diyfp::e, and JSON_ASSERT.
returns x - y
Definition at line 17690 of file json.hpp.
References JSON_ASSERT.
| int e = 0 |
Definition at line 17682 of file json.hpp.
Referenced by detail::dtoa_impl::compute_boundaries(), detail::dtoa_impl::grisu2(), detail::dtoa_impl::grisu2_digit_gen(), and diyfp::normalize_to().
| std::uint64_t f = 0 |
Definition at line 17681 of file json.hpp.
Referenced by detail::dtoa_impl::compute_boundaries(), detail::dtoa_impl::grisu2(), detail::dtoa_impl::grisu2_digit_gen(), and diyfp::mul().