BitOperations.PopCount Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| PopCount(UIntPtr) |
Retourneert het aantal populaties (aantal bits set) van een masker. Vergelijkbaar met het gedrag van de x86-instructie POPCNT. |
| PopCount(UInt32) |
Retourneert het aantal populaties (aantal bits set) van een masker. |
| PopCount(UInt64) |
Retourneert het aantal populaties (aantal bitsset) van een niet-ondertekend 64-bits geheel getalmasker. |
PopCount(UIntPtr)
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
Belangrijk
Deze API is niet CLS-conform.
Retourneert het aantal populaties (aantal bits set) van een masker. Vergelijkbaar met het gedrag van de x86-instructie 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
Parameters
- value
-
UIntPtr
unativeint
De waarde.
Retouren
Het aantal inwoners.
- Kenmerken
Van toepassing op
PopCount(UInt32)
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
Belangrijk
Deze API is niet CLS-conform.
Retourneert het aantal populaties (aantal bits set) van een masker.
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
Parameters
- value
- UInt32
Het masker.
Retouren
Het aantal inwoners van een masker.
- Kenmerken
Opmerkingen
Deze methode is vergelijkbaar met het gedrag van de x86-instructie POPCNT.
Van toepassing op
PopCount(UInt64)
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
- Bron:
- BitOperations.cs
Belangrijk
Deze API is niet CLS-conform.
Retourneert het aantal populaties (aantal bitsset) van een niet-ondertekend 64-bits geheel getalmasker.
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
Parameters
- value
- UInt64
Het masker.
Retouren
Het aantal inwoners van het masker.
- Kenmerken
Opmerkingen
Deze methode is vergelijkbaar met het gedrag van de x86-instructie POPCNT.