Public SIMD128 indexed gather/scatter
The current point layer provides indexed gather/scatter on the opaque
PublicSimdPoint4 type. No point formula, field representation, validation,
scheduler or signature protocol changes arise from these marshalling helpers.
The Schnorr scheduler uses them with paired-wide field carries, finite-mask
point paths and the checked affine-pair queue.
gather_indexed(points, indices, count) and scatter_indexed use a prefix of
0..4 lanes. gather_masked(points, indices, mask) and scatter_masked retain
the four original residue lanes; only low mask bits are used. Inactive indices
are never dereferenced. Gather permits repeated sources. Scatter requires
in-bounds, distinct active destinations and validates the entire active set
before any write.
Packing borrows coordinate references and directly builds ten limb vectors;
it does not create a [PublicSimdPoint;4] value array. Full scatter uses safe
standard-library disjoint mutable borrows, then writes each unpacked field word
directly to its destination. Partial scatter uses constant SIMD extraction
lanes and writes only active targets. No unsafe code, field serialization,
normalization, affine inversion, or dynamic allocation is added. Point and
field storage sizes remain unchanged.
The earlier R4 driver copied point value arrays during gather and scatter. Current helpers target those copies; checked indexing, packing, local moves and compiler inlining still contribute to complete call costs. See the current measured choices for installed qualification and artifact-specific results.
Native-stage receipt, 2026-10-26: two focused tests passed every 4-bit sparse mask, prefix counts0..4, arbitrary ignored indices, permuted targets, identity points, doubled/negated results, unchanged unselected slots, and bounds/duplicate rejection before any partial mutation. Group outputs are compared through k256 complete arithmetic. The inherited public field candidate had independently passed its integer/interval oracles and 48 secp plus26 Schnorr batch tests; no native speed claim is made.