Actual native CountPrime workspace calculation #
The existing native power routine computes the padded side from the computed depth. Ordinary arithmetic instructions then calculate every matrix/residue/spread/workspace pointer. The register assertions below describe the actual resulting state; no layout object is supplied to the program. All intermediate fits follow from one original-parameter numerical envelope. This module performs no allocation, clearing or memory copy.
Original-parameter physical envelope for real layout arithmetic and power evaluation.
The actual metadata words computed by the native layout routine. This internal postcondition contains no execution, time or multiplication contract.
Original side survives the power call and all pointer arithmetic.
Original modulus survives.
Computed depth survives.
Original workspace base survives.
Actual native power result.
Original matrix length.
Padded cyclic-coefficient matrix length.
Padded scalar-matrix length.
Canonical signed positive modulus word.
First actual residue block.
Second actual residue block.
Third actual residue block.
Actual spread table.
Actual first coefficient matrix.
Actual second coefficient matrix.
Actual product coefficient matrix.
Reusable native Strassen scratch begins after all three coefficient matrices.
Registers actually written by layout, including the complete low power bank.
Instances For
Compute every layout word through actual power/arithmetic instructions. All memory and original argument registers survive; every intermediate fit follows from original n,p,k,scratch.