The current implementation of Math.scalb(double) contains a loop that performs a repeated multiplication, with factors 0x1p512 or 0x1p-512.
There's no real need for the loop, and the factors can be much bigger/smaller.
There's no real need for the loop, and the factors can be much bigger/smaller.
- relates to
-
JDK-4826652 Add copySign, nextAfter, nextUp, scalb, ilogb, etc. to Math and StrictMath
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/28d009ce
-
Review(master) openjdk/jdk/20948