Returns the signficand after it has been normalized.
| 595 | |
| 596 | // Returns the signficand after it has been normalized. |
| 597 | const uint_type getNormalizedSignificand() const { |
| 598 | int_type unbiased_exponent = getUnbiasedNormalizedExponent(); |
| 599 | uint_type significand = getSignificandBits(); |
| 600 | for (int_type i = unbiased_exponent; i <= min_exponent; ++i) { |
| 601 | significand = static_cast<uint_type>(significand << 1); |
| 602 | } |
| 603 | significand &= fraction_encode_mask; |
| 604 | return significand; |
| 605 | } |
| 606 | |
| 607 | // Returns true if this number represents a negative value. |
| 608 | bool isNegative() const { return (getBits() & sign_mask) != 0; } |
no outgoing calls