TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Configured.Operations.Runtime

Standard operations for configured binary values #

These definitions expose the descriptor-generic operation model on the ordinary ExecFloat.Binary carrier. They add no arithmetic implementation and preserve exception status exactly across the packing boundary.

The definitions call the descriptor-model operations through the storage codec. The companion proof module shows that packing changes neither values nor flags.

@[inline]

IEEE remainder, using a nearest-even integral quotient for finite operands.

Instances For
    @[inline]

    IEEE remainder together with its exception indicators.

    Instances For
      @[inline]

      Round to an integer and encode it in the selected direction. A custom finite-only format can saturate; use roundToIntegralExactWithStatus to detect that overflow.

      Instances For
        @[inline]

        Round to an integer, encode it in the same direction, and report fractional loss or overflow.

        Instances For
          @[inline]

          Multiply a configured value by 2^scale and round in the selected direction.

          Instances For
            @[inline]

            Power-of-two scaling with the IEEE exception indicators.

            Instances For
              @[inline]

              Return the leading binary exponent in the same configured format.

              Instances For
                @[inline]

                Return the leading binary exponent and its IEEE exception indicators.

                Instances For
                  @[inline]

                  Copy the numerical sign of signSource onto magnitude.

                  Instances For
                    @[inline]

                    Absolute value under the configured encoding policy.

                    Instances For
                      @[inline]

                      Next representable configured value in the positive direction.

                      Instances For
                        @[inline]

                        Next representable configured value in the negative direction.

                        Instances For
                          @[inline]

                          IEEE-2008-style minNum, retaining the numeric operand against one quiet NaN.

                          Instances For
                            @[inline]

                            IEEE-2008-style maxNum, retaining the numeric operand against one quiet NaN.

                            Instances For