1 implementation of LeadingZeroCount
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1230static char IBinaryInteger<char>.LeadingZeroCount(char value) => (char)(BitOperations.LeadingZeroCount(value) - 16);
19 references to LeadingZeroCount
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
1247destination = T.LeadingZeroCount(x);
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
39public static T Invoke(T x) => T.LeadingZeroCount(x);
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
275/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1229/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
708/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
278/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
293/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
290/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
323/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
1563int lz = int.CreateTruncating(TValue.LeadingZeroCount(remainder));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
537int scale = int.CreateTruncating(TInteger.LeadingZeroCount(abs)); 602int scale = int.CreateTruncating(TInteger.LeadingZeroCount(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
281/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1004/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
272/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
288/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
287/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
319/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3372/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" />