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

Replace global log2 functions with efficient implementations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 16
    • 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

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

              Created:
              Updated:
              Resolved: