1 implementation of Log2
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1318
static char IBinaryNumber<char>.
Log2
(char value) => (char)(ushort.Log2(value));
19 references to Log2
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
414
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1317
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
577
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1236
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
976
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
501
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
540
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
537
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
542
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
40
return TSelf.IsNegative(value) ? TSelf.Zero : ((bitCount - TSelf.One) ^ TSelf.
Log2
(value));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
891
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
464
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
572
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
982
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
433
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
471
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
470
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
483
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3886
/// <inheritdoc cref="IBinaryNumber{TSelf}.
Log2
(TSelf)" />