Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-953

Replaced Double.doubleToLongBits to Double.doubleToRawLongBits where appropriate

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.2

      Description

      Replaced calls to Double.doubleToLongBits with Double.doubleToRawLongBits in FastMath where appropriate (i.e. I decided it was safe and would result in a speedup). Some methods might be significantly faster, like getExponent which I measured to be about 40% faster (do your own tests!). Patch is attached.

        Attachments

        1. patch
          3 kB
          Charles Cooper

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              coopercm Charles Cooper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: