Binary-label Horner evaluation with a supplied modulus #
The coefficient of degree i is the width-bit block at offset width * i in a binary label.
Horner evaluation visits these blocks in descending order with a binary counter. The supplied
modulus and evaluation point remain available throughout; no coefficient table is constructed.
This component belongs to the native weight-generator development in #6747. Modulus selection,
seed access and the full generator are separate components.
Main results #
HornerInput.evaluate_inSpace: linear workspace for the packed evaluation request.
Runtime data for evaluating a polynomial packed into a binary label. The coefficient width
is the degree modulus.length - 1; the coefficient count is supplied in binary.
Framed modulus and point words followed by the binary label and coefficient count.
Evaluate the packed coefficient blocks at the supplied point, reducing products modulo the supplied polynomial. A request with zero coefficient blocks returns the empty word.
Each coefficient supplied to Horner is the fixed-width block at its binary offset.
Packed Horner evaluation uses workspace linear in the encoded request length.