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

Replace global log2 functions with efficient implementations

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • 16
    • hotspot
    • b04

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: