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

fabioromano1 duke at openjdk.org
Thu May 15 14:05:01 UTC 2025


On Thu, 15 May 2025 13:51:29 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

> It cannot be made an instance method, though. There's one usage which needs a static invocation.

@rgiulietti If you are referring to [this invocation](https://github.com/fabioromano1/jdk/blob/5ad26a14049e1765d9ef46f307d723dd4b315382/src/java.base/share/classes/java/math/BigInteger.java#L3126), the local variable `exp` is just an alias of `y.mag`, so it can be made an instance invocation.

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

PR Comment: https://git.openjdk.org/jdk/pull/25166#issuecomment-2883932854


More information about the core-libs-dev mailing list