BitOperations.PopCount Método
Definição
Sobrecargas
| PopCount(UInt32) |
Retorna a contagem de população (número de bits definidos) de uma máscara.Returns the population count (number of bits set) of a mask. |
| PopCount(UInt64) |
Retorna a contagem de população (número de bits definidos) de uma máscara de inteiro de 64 bits sem sinal.Returns the population count (number of bits set) of an unsigned 64-bit integer mask. |
PopCount(UInt32)
Importante
Esta API não está em conformidade com CLS.
Retorna a contagem de população (número de bits definidos) de uma máscara.Returns the population count (number of bits set) of a mask.
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
Parâmetros
- value
- UInt32
A máscara.The mask.
Retornos
A contagem de população de uma máscara.The population count of a mask.
- Atributos
Comentários
Esse método é semelhante ao comportamento do POPCNTde instruções x86.This method is similar in behavior to the x86 instruction POPCNT.
Aplica-se a
PopCount(UInt64)
Importante
Esta API não está em conformidade com CLS.
Retorna a contagem de população (número de bits definidos) de uma máscara de inteiro de 64 bits sem sinal.Returns the population count (number of bits set) of an unsigned 64-bit integer mask.
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
Parâmetros
- value
- UInt64
A máscara.The mask.
Retornos
A contagem de população da máscara.The population count of the mask.
- Atributos
Comentários
Esse método é semelhante ao comportamento do POPCNTde instruções x86.This method is similar in behavior to the x86 instruction POPCNT.