! @brief normalize x such that the significand is >= 2^(q-1) @pre x.f != 0 */
| 16966 | @pre x.f != 0 |
| 16967 | */ |
| 16968 | static diyfp normalize(diyfp x) noexcept |
| 16969 | { |
| 16970 | JSON_ASSERT(x.f != 0); |
| 16971 | |
| 16972 | while ((x.f >> 63u) == 0) |
| 16973 | { |
| 16974 | x.f <<= 1u; |
| 16975 | x.e--; |
| 16976 | } |
| 16977 | |
| 16978 | return x; |
| 16979 | } |
| 16980 | |
| 16981 | /*! |
| 16982 | @brief normalize x such that the result has the exponent E |
no outgoing calls
no test coverage detected