RFR: 8349637: Integer.numberOfLeadingZeros outputs incorrectly in certain cases [v3]

Emanuel Peter epeter at openjdk.org
Fri Feb 14 15:16:24 UTC 2025


On Thu, 13 Feb 2025 19:23:51 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> Jasmine Karthikeyan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Improve explanation of logic
>
> Thank you for fixing this. More broadly we should double check the intrinsics of Long/Integer.numberOfLeading/Trailing/Zeros (we added in the integration of Integration of JEP 426: Vector API) and follow up with any necessary tests and/or fixes in subsequent PRs.

@PaulSandoz @jatin-bhateja This should really have been caught by VectorAPI testing, but apparently not the whole range was covered.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23579#issuecomment-2659590282


More information about the hotspot-compiler-dev mailing list