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

Improve java implementation of Integer/Long.numberOfLeadingZeros

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • None
    • core-libs
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: