News for hackers. Stuff that matters.
Re:Iterating over Bit Sets Quickly by corysama on Saturday February 24, 2024 @03:34PM (#39494931)
Same. I’m very happy about the addition of https://en.cppreference.com/w/cpp/numeric/countr_zero There’s a proposal to get them to work with std::bitset. https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p31... Don’t know if it got anywhere.

Meanwhile, you might appreciate the venerable https://graphics.stanford.edu/~seander/bithacks.html

There are no comments on this comment yet.