MCPcopy Create free account
hub / github.com/ablab/spades / makeSmallestNormalized

Method makeSmallestNormalized

ext/src/llvm/APFloat.cpp:3579–3591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3577}
3578
3579void 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
3593IEEEFloat::IEEEFloat(const fltSemantics &Sem, const APInt &API) {
3594 initFromAPInt(&Sem, API);

Callers

nothing calls this directly

Calls 6

partCountForBitsFunction · 0.85
assertClass · 0.85
APFloatClass · 0.85
APIntFunction · 0.50
changeSignMethod · 0.45
makeZeroMethod · 0.45

Tested by

no test coverage detected