popcnt

fnint popcnt(uint x) nothrow @safe @nogc pure

Calculates the number of set bits in an integer.

fnint popcnt(ulong x) nothrow @safe @nogc pure

ditto