popcnt

Calculates the number of set bits in an integer.

  1. int popcnt(uint x)
    nothrow @safe @nogc pure
    int
    popcnt
    (
    uint x
    )
  2. int popcnt(ulong x)

Meta