JDK-8339934 : Simplify Math.scalb(double) method
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-11
  • Updated: 2024-09-23
  • Resolved: 2024-09-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b16Fixed
Related Reports
Relates :  
Description
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.
Comments
Changeset: 28d009ce Branch: master Author: Raffaello Giulietti <rgiulietti@openjdk.org> Date: 2024-09-17 17:11:32 +0000 URL: https://git.openjdk.org/jdk/commit/28d009ce0ecd4369351de859c491831b7f7bbb28
17-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20948 Date: 2024-09-11 12:45:50 +0000
11-09-2024