Improve java implementation of Integer/Long.numberOfLeadingZeros

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: core-libs
    • b15

        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.

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

                Created:
                Updated:
                Resolved: