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

AArch64: remove Math.log intrinsic

    XMLWordPrintable

Details

    • b08
    • aarch64

    Description

      Remove Math.log instrinsic (it is already disabled).

      Reason: the available implementation gave incorrect results:

      public class LogTest {
          public static void main(String[] args) {
              double x = 4.9E-324;
              System.out.println(Math.log(x));
              System.out.println(StrictMath.log(x));
          }
      }

      Should be -744.4400719213812, result is -710.989276736877.
      Correct on Intel x86.

      Second reason: We do not have proof of the monotonicity for the patch of this intrinsic.

      Attachments

        Issue Links

          Activity

            People

              tholenstein Tobias Holenstein
              aph Andrew Haley
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: