Langue

Int32.PopCount(Int32) Méthode

Définition

Calcule le nombre de bits définis dans une valeur.

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

Paramètres

value
Int32

Valeur dont les bits définis doivent être comptés.

Retours

Nombre de bits définis dans value.

Implémente

S’applique à