On Thu, 13 Jul 2023 17:57:16 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> Couple of static fields in Math could be declared `final`.

src/java.base/share/classes/java/lang/Math.java line 3425:

> 3423:     // Constants used in scalb
> 3424:     private static final double twoToTheDoubleScaleUp = 
> powerOfTwoD(512);
> 3425:     private static final double twoToTheDoubleScaleDown = 
> powerOfTwoD(-512);

Aren't these the _literals_ `0x1p512` and `0x1p-512`, respectively?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14875#discussion_r1286144980

Reply via email to