TorchLean API

FloatLib.Floats.ExecFloat.Backends.FixedLimb.Pair.Multiplication.Runtime

Two-word multiplication runtime #

The partial four-limb product kernel multiplies normal operands in every eligible two-word layout. The operation dispatcher owns the exact baseline for declined cases. Refinement proofs are isolated in Multiplication.Proof.

@[inline]

Round and pack a four-limb normal product whose leading set bit is at position leading.

The product of two normal significands, or the aligned sum used by fused multiply-add, is rounded to fracWidth + 1 bits by shifting out leading - fracWidth bits with ties to even. A magnitude below the normal range, or a rounded result above the largest finite exponent, is declined.

Instances For
    @[inline]

    Multiply two decoded normal significands in fixed limbs.

    Instances For
      @[specialize #[0]]

      Decode two values and try the fixed-limb normal product.

      Descriptor specialization follows the pattern described in Dispatch.Add.Runtime.

      Instances For