Add an efficient implementation of the "count trailing zeros" operation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • b21
    • generic
    • generic

      There are a number of possible uses for an efficient "count trailing zero" operation. By efficient we mean access to the underlying hardware support; supported hardware architectures generally provide an efficient implementation, e.g. a single instruction or a short instruction sequence.

      One obvious use is in the BitMap search functions, which are presently performing that operation using a for-loop to iterate over the bits in the word of interest. See JDK-6735527.

            Assignee:
            Kim Barrett
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: