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

Improve bit counting utilities using C++20 operations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 16
    • hotspot

      C++20 <bit> provides std::countl_zero and std::countr_zero, which are both constexpr. However, they only support unsigned types, so we would probably want to keep the names of the existing HotSpot functions (count_leading_zeros and count_trailing_zeros) as wrappers that also handle signed types.

            Unassigned Unassigned
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: