RFR: 8356891: Some code simplifications for basic BigIntegers' bit operations [v6]

fabioromano1 duke at openjdk.org
Mon May 19 17:43:56 UTC 2025


On Mon, 19 May 2025 17:34:16 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> Yes, but perhaps in the current version it's more clear what is the returned value according to the condition.
>
> One could see the suggested variant as "return magBitLength(), except for a corrective term in case blah blah..."

Moreover, the current version avoids a subtraction in almost all cases, although probably it is negligible.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25166#discussion_r2096217698


More information about the core-libs-dev mailing list