1 implementation of Log2
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1372
static char IBinaryNumber<char>.
Log2
(char value) => (char)(ushort.Log2(value));
20 references to Log2
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
409
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1371
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
575
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1266
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
960
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
489
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
529
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
526
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
559
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
897
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
309
return TSelf.IsNegative(value) ? TSelf.Zero : ((bitCount - TSelf.One) ^ TSelf.
Log2
(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
890
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
468
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
568
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1247
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
414
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
478
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
485
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
494
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
4026
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />