Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8339934

Simplify Math.scalb(double) method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs
    • b16

      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.

            rgiulietti Raffaello Giulietti
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: