TorchLean API

FloatLib.Floats.Formats.Posit.Arithmetic.Limb.Packed.Boundary.Runtime

Packed two-limb operation boundaries #

These small executable combinators centralize propagation of the unique Posit Standard NaR condition after packed operands have been decoded. Range and semantic refinement laws live in Boundary.Proof.

@[inline]

Select a unary result, returning narResult when the decoded input is NaR.

Instances For
    @[inline]

    Select a binary result, returning narResult when either decoded input is NaR.

    Instances For
      @[inline]

      Select a ternary result, returning narResult when any decoded input is NaR.

      Instances For
        @[inline]

        Apply a finite unary code kernel, returning narCode for NaR.

        Instances For
          @[inline]

          Apply a finite binary code kernel, returning narCode if either input is NaR.

          Instances For
            @[inline]

            Apply a finite ternary code kernel, returning narCode if any input is NaR.

            Instances For