IBinaryInteger<TSelf>.PopCount(TSelf) 方法

定义

计算值中设置的位数。

public:
 static TSelf PopCount(TSelf value);
public static abstract TSelf PopCount (TSelf value);
static member PopCount : 'Self -> 'Self
Public Shared Function PopCount (value As TSelf) As TSelf

参数

value
TSelf

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

返回

TSelf

中的 value设置位数。

适用于