On Wed, 25 Nov 2026 10:20:10 GMT, Andrew Dinn <[email protected]> wrote:
>> Shawn Emery has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Update based on comments from @adinn and @theRealAph
>
> src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp line 9033:
>
>> 9031:
>> 9032: // Perform high/low multiplication with signed 7x55 bit limbs
>> 9033: void mulhl_P384(Register a, Register b, Register high, Register low,
>> Register c[], int i, int j) {
>
> This is my fault for not being clear in the original request but you ought
> really to be doing the index add (i + j) or, in the case of square (i * 2) at
> the call site and passing that as a single index argument.
> You could also document the fact that the output low and high results are
> written to adjacent array slots at index i and i+1. So ...
> Suggestion:
>
> // output a * b as 2*55 bit products in (high, low) and
> // accumulate (high, low) into (c[i], c[i+1])
> void mulhl_P384(Register a, Register b, Register high, Register low,
> Register c[], int i) {
>
> And then replace i + j in the body of the method with i
Agreed and done!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/33618#discussion_r4701167121