语言

Int16.PopCount(Int16) 方法

定义

计算值中设置的位数。

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

参数

value
Int16

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

返回

中的 value设置位数。

实现

适用于