def
Float.Model.UnpackedFloat.packComponents
(spec : Format)
(sign : Sign)
(exponent : BitVec spec.exponentBits)
(mantissa : BitVec spec.mantissaBitsWithoutImplicit)
:
Creates a packed float from a sign, an exponent and a mantissa.
Instances For
Creates the canonical packed NaN for the given specification.
Instances For
Packs the given float into the format given by the specification.
This function assumes that the float is already correctly rounded for the given specification.
This means that the exponent must be equal to the exponent computed by spec.targetExponent.
Instances For
Unpacks the mantissa portion of the packed float. If this is a normal number, this will be missing the implicit bit.
Instances For
def
Float.Model.UnpackedFloat.unpackExponent
{spec : Format}
(b : BitVec spec.numBits)
:
BitVec spec.exponentBits
Unpacks the exponent portion of the packed float.
Instances For
Unpacks the given float according to the given specification.
The resulting float may be assumed to be correctly rounded for the given specification.