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

Jasmine Karthikeyan jkarthikeyan at openjdk.org
Mon Mar 3 05:21:59 UTC 2025


On Fri, 14 Feb 2025 14:05:26 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> Jasmine Karthikeyan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Improve explanation of logic
>
> Nice analysis, Emanuel.
> 
> Here's my test: https://github.com/openjdk/jdk/commit/7fd87d3013d23e151c98e451c6cd07bf55b9507b
> 
> @jaskarth could you please add something similar to this PR? At least for the integer / long cases and also for the trailing zero case. I'm fine with fixing the short/byte issue separately.

Thanks for the reviews, @TobiHartmann, @merykitty, @jatin-bhateja, and everyone else for the comments!

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

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


More information about the hotspot-compiler-dev mailing list