1 implementation of PopCount
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1236
static char IBinaryInteger<char>.
PopCount
(char value) => (char)BitOperations.PopCount(value);
18 references to PopCount
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
1726
destination = T.
PopCount
(x);
System\Numerics\Tensors\netcore\TensorPrimitives.HammingDistance.cs (1)
30
count += long.CreateTruncating(T.
PopCount
(x[i] ^ y[i]));
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (2)
22
count += long.CreateTruncating(T.
PopCount
(x[i]));
55
public static T Invoke(T x) => T.
PopCount
(x);
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
281
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1235
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
733
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
291
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
308
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
305
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
338
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
294
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1081
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
278
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
321
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
328
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
333
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3394
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />