Harmony
  1. Harmony
  2. HARMONY-6441

[classlib][luni]Math.pow(double, double) result differ from RI

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M13
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      windows
    • Patch Info:
      Patch Available

      Description

      Math.pow(double, double) result differ from RI for the following inputs:

      Scenario 1:
      arg0: -100.0
      arg1: 9.007199254740991E15
      RI Returns: -Infinity
      HDK Returns: Infinity

      Scenario 2:
      arg0: -100.0
      arg1: -9.007199254740991E15
      RI Returns: -0.0
      HDK Returns: 0.0

        Activity

        Hide
        Hudson added a comment -

        Integrated in Harmony-1.5-head-linux-x86_64 #659 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/659/)
        revert fix for at r909251, but keep the test case.

        It is fixed in fdlibm 5.3, the check in java code is not necessary anymore.

        Show
        Hudson added a comment - Integrated in Harmony-1.5-head-linux-x86_64 #659 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/659/ ) revert fix for at r909251, but keep the test case. It is fixed in fdlibm 5.3, the check in java code is not necessary anymore.
        Hide
        Mohanraj Loganathan added a comment -

        Thank you Regis, Verified @ r910959.

        Show
        Mohanraj Loganathan added a comment - Thank you Regis, Verified @ r910959.
        Hide
        Hudson added a comment -

        Integrated in Harmony-1.5-head-linux-x86_64 #622 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/622/)
        Apply patch for : [classlib][luni]Math.pow(double, double) result differ from RI

        Show
        Hudson added a comment - Integrated in Harmony-1.5-head-linux-x86_64 #622 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/622/ ) Apply patch for : [classlib] [luni] Math.pow(double, double) result differ from RI
        Hide
        Regis Xu added a comment -

        Thanks Mohan, patch is applied at r909251, please verify.

        Show
        Regis Xu added a comment - Thanks Mohan, patch is applied at r909251, please verify.
        Hide
        Mohanraj Loganathan added a comment -

        Attaching patch for this issue.

        Show
        Mohanraj Loganathan added a comment - Attaching patch for this issue.

          People

          • Assignee:
            Regis Xu
            Reporter:
            Mohanraj Loganathan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development