Improve population_count using C++20 popcount

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 16
    • Component/s: hotspot

      C++20 <bit> provides std::popcount, which is constexpr. However, it only supports unsigned types, so we probably would want to keep the name population_count as a wrapper that also handles signed types.

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

              Created:
              Updated:
              Resolved: