The OpenD Programming Language

popcnt

Calculates the number of set bits in an integer.

  1. int popcnt(uint x)
  2. int popcnt(ulong x)
    nothrow @safe @nogc pragma(inline, true) pure
    int
    popcnt
    (
    ulong x
    )

Meta