| 3577 | } |
| 3578 | |
| 3579 | void IEEEFloat::makeSmallestNormalized(bool Negative) { |
| 3580 | // We want (in interchange format): |
| 3581 | // sign = {Negative} |
| 3582 | // exponent = 0..0 |
| 3583 | // significand = 10..0 |
| 3584 | |
| 3585 | category = fcNormal; |
| 3586 | zeroSignificand(); |
| 3587 | sign = Negative; |
| 3588 | exponent = semantics->minExponent; |
| 3589 | significandParts()[partCountForBits(semantics->precision) - 1] |= |
| 3590 | (((integerPart)1) << ((semantics->precision - 1) % integerPartWidth)); |
| 3591 | } |
| 3592 | |
| 3593 | IEEEFloat::IEEEFloat(const fltSemantics &Sem, const APInt &API) { |
| 3594 | initFromAPInt(&Sem, API); |
nothing calls this directly
no test coverage detected