On Wed, 2 Dec 2026 06:56:23 GMT, Shawn Emery <[email protected]> wrote:
> This bug fix brings into parity the offset for the sums of 3 polynomials for > ML-KEM AArch64 intrinsics with Java and x86_64 intrinsics. By offsetting by > `2*q` instead of `q`, this fix guarantees that the sum will be greater than > `-q`, which aligns with output ranges [0, q) as commented in methods such as > `mlKemAddPoly()`. After Barrett reduction, `-q` is reduced out of range to > `q`. > > --------- > - [X] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). Looks good and trivial. ------------- Marked as reviewed by adinn (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/34178#pullrequestreview-6147780943
