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

Improve java implementation of Integer/Long.numberOfLeadingZeros

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15

      Backports

        Description

        During warmup and in environments with no corresponding intrinsics, the current implementations of Integer/Long.numberOfLeadingZeros doesn't get optimally compiled. Implementations avoiding right-shift operations allows C1 and C2 to produce better code.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                redestad Claes Redestad
                Reporter:
                redestad Claes Redestad
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: