Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.Callable.Program

Callable queried-product code #

The source product is unchanged. Its translated memory accesses use a runtime base in register 160 and a source-word modulus computed from the original row and query counts. The 160 source registers occupy the low bank; registers 161 and 162 are the modulus and address temporary.

Raw zero/one entries are still doubled by the original charged matrix-input loop. Setup and final normalization touch only the original input and answer spans, never the whole reserved window or caller catalogue. The code definitions here are internal implementation APIs.

@[reducible, inline]

Absolute result pointer returned to the caller. Also a setup argument register.

@[reducible, inline]

Setup constant or normalization modulus.

@[reducible, inline]

Power exponent during setup.

@[reducible, inline]

Runtime source-memory base supplied by the caller.

@[reducible, inline]

Computed source-word modulus, preserved across the translated product.

@[reducible, inline]

Source register retaining the original input span length.

@[reducible, inline]

Source register retaining the relative answer pointer.

@[reducible, inline]

Source register retaining the query occurrence count.

The logarithm routine uses four low scratch registers.

The power routine uses five low scratch registers.

Array normalization uses seven low scratch registers.

Compute 2^(128*clog₂(N+Q+3)) with the existing logarithm and power programs.

Normalize the restored local input, so its actual physical words equal their source words.

One fixed native raw-input product callable above an arbitrary caller-supplied base. Every memory translation, source instruction and normalization is part of this code.

Internal execution prefix through setup and the actual translated product.

The derived source width is independent of the physical machine width.

Polynomially bounded virtual address-space reservation; no bulk initialization is implied.