1 implementation of PopCount
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1166
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)
1674
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\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
284
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1165
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
733
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
287
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
303
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
300
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
305
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
290
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
800
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
281
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
298
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
297
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
301
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3183
/// <inheritdoc cref="IBinaryInteger{TSelf}.
PopCount
(TSelf)" />