UInt64.PopCount(UInt64) Metod

Definition

Beräknar antalet bitar som anges i ett värde.

public:
 static System::UInt64 PopCount(System::UInt64 value) = System::Numerics::IBinaryInteger<System::UInt64>::PopCount;
public static ulong PopCount(ulong value);
static member PopCount : uint64 -> uint64
Public Shared Function PopCount (value As ULong) As ULong

Parametrar

value
UInt64

Värdet vars angivna bitar ska räknas.

Returer

Antalet angivna bitar i value.

Implementeringar

Gäller för