2 interfaces inheriting from IBinaryNumber
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryFloatingPointIeee754.cs (1)
9: IBinaryNumber<TSelf>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
9: IBinaryNumber<TSelf>,
85 references to IBinaryNumber
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\InterfaceInfoPal.Unix.cs (1)
19where TChar : unmanaged, IBinaryNumber<TChar>
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (4)
19where T : IBinaryNumber<T> => 29where T : IBinaryNumber<T> => 40where T : IBinaryNumber<T> => 46where T : IBinaryNumber<T>
System.Private.CoreLib (75)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (4)
403/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 404static byte IBinaryNumber<byte>.AllBitsSet => MaxValue; 406/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 409/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (6)
1365/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 1366static char IBinaryNumber<char>.AllBitsSet => (char)0xFFFF; 1368/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 1369static bool IBinaryNumber<char>.IsPow2(char value) => ushort.IsPow2(value); 1371/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" /> 1372static char IBinaryNumber<char>.Log2(char value) => (char)(ushort.Log2(value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (4)
543/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 544static double IBinaryNumber<double>.AllBitsSet => BitConverter.UInt64BitsToDouble(0xFFFF_FFFF_FFFF_FFFF); 546/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 575/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (4)
1234/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 1235static Half IBinaryNumber<Half>.AllBitsSet => BitConverter.UInt16BitsToHalf(0xFFFF); 1237/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 1266/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (4)
954/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 955static Int128 IBinaryNumber<Int128>.AllBitsSet => new Int128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 957/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 960/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
483/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 484static short IBinaryNumber<short>.AllBitsSet => NegativeOne; 486/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 489/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
523/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 524static int IBinaryNumber<int>.AllBitsSet => NegativeOne; 526/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 529/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
520/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 521static long IBinaryNumber<long>.AllBitsSet => NegativeOne; 523/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 526/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (4)
553/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 554static nint IBinaryNumber<nint>.AllBitsSet => -1; 556/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 559/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (4)
865/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 866static BFloat16 IBinaryNumber<BFloat16>.AllBitsSet => new BFloat16(0xFFFF); 868/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 897/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryNumber.cs (1)
11where TSelf : IBinaryNumber<TSelf>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (4)
875/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 876static NFloat IBinaryNumber<NFloat>.AllBitsSet 887/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 890/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (4)
462/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 463static sbyte IBinaryNumber<sbyte>.AllBitsSet => NegativeOne; 465/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 468/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (4)
536/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 537static float IBinaryNumber<float>.AllBitsSet => BitConverter.UInt32BitsToSingle(0xFFFF_FFFF); 539/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 568/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (4)
1241/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 1242static UInt128 IBinaryNumber<UInt128>.AllBitsSet => new UInt128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 1244/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 1247/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (4)
408/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 409static ushort IBinaryNumber<ushort>.AllBitsSet => MaxValue; 411/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 414/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (4)
472/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 473static uint IBinaryNumber<uint>.AllBitsSet => MaxValue; 475/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 478/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (4)
479/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 480static ulong IBinaryNumber<ulong>.AllBitsSet => MaxValue; 482/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 485/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (4)
484/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 485static nuint IBinaryNumber<nuint>.AllBitsSet 491/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 494/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
386[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.IBinaryNumber<>))]
System.Runtime.Numerics (4)
System\Numerics\BigInteger.cs (4)
4020/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 4021static BigInteger IBinaryNumber<BigInteger>.AllBitsSet => MinusOne; 4023/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 4026/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />