Int64.PopCount(Int64) 方法

定義

計算值中所設定的位數。

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

參數

value
Int64

要計算其設定位的值。

傳回

中的 value 設定位數目。

實作

適用於