News for hackers. Stuff that matters.
Re:Iterating over Bit Sets Quickly by pizlonator on Saturday February 24, 2024 @03:23PM (#39494850)
Totally. The hamming weight thing this post does is available as an instruction on most cpus.
Re:Iterating over Bit Sets Quickly by emmelaich on Saturday February 24, 2024 @10:06PM (#39497223)
Exposed as popcount() in recent versions of Python and C++.