语言

UInt32.PopCount(UInt32) 方法

定义

计算值中设置的位数。

public:
 static System::UInt32 PopCount(System::UInt32 value) = System::Numerics::IBinaryInteger<System::UInt32>::PopCount;
public static uint PopCount(uint value);
static member PopCount : uint32 -> uint32
Public Shared Function PopCount (value As UInteger) As UInteger

参数

value
UInt32

要对其设置位进行计数的值。

返回

中的 value设置位数。

实现

适用于