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 設定位數目。

實作

適用於