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

Replaced Double.doubleToLongBits to Double.doubleToRawLongBits where appropriate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.1
    • 3.2
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: