On Tue, 7 Mar 2023 16:06:17 GMT, Paul Sandoz <psan...@openjdk.org> wrote:

>> `Long:numberOfLeadingZeros` implementation uses more method calls, 
>> conditional statements and binary operations. I would prefer to stick with 
>> the current implementation for its speed and simplicity.
>
> `numberOfLeadingZeros` is an intrinsic, so it will compile down to a machine 
> instruction. Up to you.

Oh, I've changed it, thanks.

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

PR: https://git.openjdk.org/jdk/pull/10982

Reply via email to