Replace global log2 functions with efficient implementations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 16
    • Component/s: hotspot
    • b04

      globalDefinitions.hpp defines a number of log2 functions, which uses a naive iterative approach.

      A few methods were moved to powerOfTwo.hpp by JDK-8183574 and JDK-8240829, where they can be efficiently implemented using count_leading_zeros. I suggest we complete this move and remove the log2 methods from globalDefinitions.hpp

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

              Created:
              Updated:
              Resolved: