On Mon, 16 Nov 2026 21:48:05 GMT, Sandhya Viswanathan <[email protected]> wrote:
>> Volodymyr Paprotski has updated the pull request with a new target base due >> to a merge or a rebase. The pull request now contains eight commits: >> >> - re-enable test >> - Merge remote-tracking branch 'origin/master' into avx2-mlkem >> - whitespace >> - reduce fuzz test repetition >> - Merge remote-tracking branch 'origin/master' into avx2-mlkem >> - prepare for rebase >> - comments from Anas >> - avx2 mlkem drop > > src/hotspot/cpu/x86/stubGenerator_x86_64_kyber.cpp line 943: > >> 941: // a = b * c >> 942: // aLow = aLow * Const1 >> 943: // r = aHigh - HighBits(aLow * Const2) > > Given that there is a comment above the method, do we still need this > comment? This comment seems incomplete: What is Const1/Const2? Why matmult > suddenly? Deleted.. was a leftover of my own notes (compressed view of all the operations in this function, * in first half is montMult.. but you are right, its just confusing here, its already explained in the function comment) > src/hotspot/cpu/x86/stubGenerator_x86_64_kyber.cpp line 999: > >> 997: shuffle(A2, A1, T1, 16); >> 998: shuffle(B2, B1, T2, 16); >> 999: montMul(T1, A1, B1, T2, qInvModR, kyber_q, vector_len, _masm, >> regCnt); > > The comment above the method talks in terms of a0, a1, b0, b1. Here the terms > used are A1, A2, B1, B2. It makes it bit harder to follow. yes, confusing.. reindexed to zero-based ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33444#discussion_r4622335158 PR Review Comment: https://git.openjdk.org/jdk/pull/33444#discussion_r4622339911
