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 root
computes the complete destination-width prefix from a candidate accepted only after an exact
square check, with the restoring loop as fallback. CheckedSqrt.Compiler extends the checked
candidate to radicands of at least 2 ^ 128 in compiled code. The common two-limb guard/sticky
packer then selects the Posit code. The significand, root, and remainder stay in fixed-width
carriers.
Scale one native significand for destination-width square-root prefix generation.
For an eligible one-word Posit, payloadBits ≤ 63, so with the exponent parity shift < 128.
The exact product fits below bit 192 and is consumed by the 96-step root kernel.
Instances For
Round decoded native fields through the exact fixed-word root prefix.
Instances For
Complete square-root code retained in the native storage carrier.
Instances For
Natural-number view of the complete native square-root code.