Int64.PopCount(Int64) Methode

Definition

Berechnet die Anzahl der Bits, die in einem Wert festgelegt sind.

public:
 static long PopCount(long value) = System::Numerics::IBinaryInteger<long>::PopCount;
public static long PopCount(long value);
static member PopCount : int64 -> int64
Public Shared Function PopCount (value As Long) As Long

Parameter

value
Int64

Der Wert, dessen Setbits gezählt werden sollen.

Gibt zurück

Die Anzahl der festgelegten Bits in value.

Implementiert

Gilt für: