Improve bit counting utilities using C++20 operations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 16
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: