Documentation

Init.Data.Float.Model.Unpacked.Pack.Basic

Creates a packed float from a sign, an exponent and a mantissa.

Equations
Instances For

    Creates the packed signed infinity representation for the given specification.

    Equations
    Instances For

      Creates the canonical packed NaN for the given specification.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Creates the packed signed zero representation for the given specification.

        Equations
        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.

          Equations
          Instances For

            Unpacks the mantissa portion of the packed float. If this is a normal number, this will be missing the implicit bit.

            Equations
            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.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For