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

Replace global log2 functions with efficient implementations

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: