! @brief normalize x such that the significand is >= 2^(q-1) @pre x.f != 0 */
| 14477 | @pre x.f != 0 |
| 14478 | */ |
| 14479 | static diyfp normalize(diyfp x) noexcept |
| 14480 | { |
| 14481 | JSON_ASSERT(x.f != 0); |
| 14482 | |
| 14483 | while ((x.f >> 63u) == 0) |
| 14484 | { |
| 14485 | x.f <<= 1u; |
| 14486 | x.e--; |
| 14487 | } |
| 14488 | |
| 14489 | return x; |
| 14490 | } |
| 14491 | |
| 14492 | /*! |
| 14493 | @brief normalize x such that the result has the exponent E |
nothing calls this directly
no outgoing calls
no test coverage detected