BitOperations.PopCount Methode

Definition

Überlädt

PopCount(UInt64)

Gibt die Auffüllungsanzahl (Anzahl festgelegter Bits) einer 64-Bit-Ganzzahlmaske ohne Vorzeichen zurück.

PopCount(UIntPtr)

Gibt die Auffüllungsanzahl (Anzahl festgelegter Bits) einer Maske zurück. Ähnlich wie im Verhalten der x86-Anweisung POPCNT.

PopCount(UInt32)

Gibt die Auffüllungsanzahl (Anzahl festgelegter Bits) einer Maske zurück.

PopCount(UInt64)

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die Auffüllungsanzahl (Anzahl festgelegter Bits) einer 64-Bit-Ganzzahlmaske ohne Vorzeichen zurück.

public:
 static int PopCount(System::UInt64 value);
[System.CLSCompliant(false)]
public static int PopCount (ulong value);
[<System.CLSCompliant(false)>]
static member PopCount : uint64 -> int
Public Shared Function PopCount (value As ULong) As Integer

Parameter

value
UInt64

Die Maske.

Gibt zurück

Int32

Die Auffüllungsanzahl der Maske.

Attribute

Hinweise

Diese Methode ähnelt dem Verhalten der x86-Anweisung POPCNT.

Gilt für:

PopCount(UIntPtr)

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die Auffüllungsanzahl (Anzahl festgelegter Bits) einer Maske zurück. Ähnlich wie im Verhalten der x86-Anweisung POPCNT.

public:
 static int PopCount(UIntPtr value);
[System.CLSCompliant(false)]
public static int PopCount (UIntPtr value);
[<System.CLSCompliant(false)>]
static member PopCount : unativeint -> int
Public Shared Function PopCount (value As UIntPtr) As Integer

Parameter

value
UIntPtr

unativeint

Der Wert.

Gibt zurück

Int32

Die Anzahl der Bevölkerung.

Attribute

Gilt für:

PopCount(UInt32)

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die Auffüllungsanzahl (Anzahl festgelegter Bits) einer Maske zurück.

public:
 static int PopCount(System::UInt32 value);
[System.CLSCompliant(false)]
public static int PopCount (uint value);
[<System.CLSCompliant(false)>]
static member PopCount : uint32 -> int
Public Shared Function PopCount (value As UInteger) As Integer

Parameter

value
UInt32

Die Maske.

Gibt zurück

Int32

Die Auffüllungsanzahl einer Maske.

Attribute

Hinweise

Diese Methode ähnelt dem Verhalten der x86-Anweisung POPCNT.

Gilt für: