TorchLean API

FloatLib.Floats.Formats.Posit.Arithmetic.Word.Packed.SquareRoot.Runtime

Packed native-word Posit square root #

The packed square-root adapter connects native posit storage to the width-generic direct kernel. A proved-valid UInt64 encoding is decoded once into native dyadic fields. A fixed-word restoring root computes the complete destination-width prefix and the common two-limb guard/sticky packer selects the Posit code. The significand, root, and remainder stay in fixed-width carriers.

@[inline]

Scale one native significand for destination-width square-root prefix generation.

For an eligible one-word Posit, payloadBits ≤ 63; exponent parity therefore makes shift < 128. The exact product fits below bit 192 and is consumed by the 96-digit restoring kernel.

Instances For
    @[inline]

    Round decoded native fields through the exact fixed-word root prefix.

    Instances For
      @[inline]

      Complete square-root code retained in the native storage carrier.

      Instances For
        @[inline]

        Natural-number view of the complete native square-root code.

        Instances For