2 interfaces inheriting from IBinaryNumber
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryFloatingPointIeee754.cs (1)
9: IBinaryNumber<TSelf>,
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
9: IBinaryNumber<TSelf>,
81 references to IBinaryNumber
System.Net.Primitives (1)
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)
22where T : IBinaryNumber<T> => 32where T : IBinaryNumber<T> => 43where T : IBinaryNumber<T> => 49where T : IBinaryNumber<T>
System.Private.CoreLib (71)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (4)
408/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 409static byte IBinaryNumber<byte>.AllBitsSet => MaxValue; 411/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 414/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (6)
1311/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 1312static char IBinaryNumber<char>.AllBitsSet => (char)0xFFFF; 1314/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 1315static bool IBinaryNumber<char>.IsPow2(char value) => ushort.IsPow2(value); 1317/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" /> 1318static char IBinaryNumber<char>.Log2(char value) => (char)(ushort.Log2(value));
src\libraries\System.Private.CoreLib\src\System\Double.cs (4)
545/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 546static double IBinaryNumber<double>.AllBitsSet => BitConverter.UInt64BitsToDouble(0xFFFF_FFFF_FFFF_FFFF); 548/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 577/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (4)
1204/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 1205static Half IBinaryNumber<Half>.AllBitsSet => BitConverter.UInt16BitsToHalf(0xFFFF); 1207/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 1236/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (4)
970/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 971static Int128 IBinaryNumber<Int128>.AllBitsSet => new Int128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 973/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 976/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
495/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 496static short IBinaryNumber<short>.AllBitsSet => NegativeOne; 498/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 501/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
534/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 535static int IBinaryNumber<int>.AllBitsSet => NegativeOne; 537/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 540/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
531/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 532static long IBinaryNumber<long>.AllBitsSet => NegativeOne; 534/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 537/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (4)
536/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 537static nint IBinaryNumber<nint>.AllBitsSet => -1; 539/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 542/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryNumber.cs (1)
11where TSelf : IBinaryNumber<TSelf>?
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (4)
876/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 877static NFloat IBinaryNumber<NFloat>.AllBitsSet 888/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 891/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (4)
458/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 459static sbyte IBinaryNumber<sbyte>.AllBitsSet => NegativeOne; 461/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 464/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (4)
540/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 541static float IBinaryNumber<float>.AllBitsSet => BitConverter.UInt32BitsToSingle(0xFFFF_FFFF); 543/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 572/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (4)
976/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 977static UInt128 IBinaryNumber<UInt128>.AllBitsSet => new UInt128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 979/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 982/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (4)
427/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 428static ushort IBinaryNumber<ushort>.AllBitsSet => MaxValue; 430/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 433/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (4)
465/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 466static uint IBinaryNumber<uint>.AllBitsSet => MaxValue; 468/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 471/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (4)
464/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 465static ulong IBinaryNumber<ulong>.AllBitsSet => MaxValue; 467/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 470/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (4)
468/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 469static nuint IBinaryNumber<nuint>.AllBitsSet 480/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 483/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
375[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.IBinaryNumber<>))]
System.Runtime.Numerics (4)
System\Numerics\BigInteger.cs (4)
3880/// <inheritdoc cref="IBinaryNumber{TSelf}.AllBitsSet" /> 3881static BigInteger IBinaryNumber<BigInteger>.AllBitsSet => MinusOne; 3883/// <inheritdoc cref="IBinaryNumber{TSelf}.IsPow2(TSelf)" /> 3886/// <inheritdoc cref="IBinaryNumber{TSelf}.Log2(TSelf)" />