Documentation

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

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

Instances For

    Creates the packed signed infinity representation for the given specification.

    Instances For

      Creates the canonical packed NaN for the given specification.

      Instances For

        Creates the packed signed zero representation 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

              Unpacks the exponent portion of the packed float.

              Instances For

                Unpacks the sign bit 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.

                  Instances For