popcnt

fnint popcnt(uint x) pure

Calculates the number of set bits in an integer.

fnint popcnt(ulong x) pure

ditto