RFR: 8343700: ceil_log2 should not loop endlessly [v3]
Thomas Stuefe
stuefe at openjdk.org
Thu Nov 14 07:16:45 UTC 2024
On Wed, 13 Nov 2024 19:58:32 GMT, Sonia Zaldana Calles <szaldana at openjdk.org> wrote:
>> Hi all,
>>
>> This PR addresses [8343700](https://bugs.openjdk.org/browse/JDK-8343700) where ceil_log2 looped endlessly if the input value has the highest bit set.
>>
>> I also dealt with the case where we try to find ceil_log2(1) which would've returned 1 as opposed to 0.
>>
>> Cheers,
>> Sonia
>
> Sonia Zaldana Calles has updated the pull request incrementally with one additional commit since the last revision:
>
> Starting ret at 0
+1
-------------
Marked as reviewed by stuefe (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22074#pullrequestreview-2435217253
More information about the hotspot-dev
mailing list