2 interfaces inheriting from IBinaryInteger
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IUtfChar.cs (1)
14IBinaryInteger<TSelf>
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
30internal interface IBinaryIntegerParseAndFormatInfo<TSelf> : IBinaryInteger<TSelf>, IMinMaxValue<TSelf>
14 implementations of IBinaryInteger
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
22IBinaryInteger<byte>,
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
28IBinaryInteger<char>,
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
18: IBinaryInteger<Int128>,
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
24IBinaryInteger<short>,
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
24IBinaryInteger<int>,
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
24IBinaryInteger<long>,
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
33IBinaryInteger<nint>,
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
24IBinaryInteger<sbyte>,
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
20: IBinaryInteger<UInt128>,
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
24IBinaryInteger<ushort>,
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
24IBinaryInteger<uint>,
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
24IBinaryInteger<ulong>,
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
33IBinaryInteger<nuint>,
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
22IBinaryInteger<BigInteger>,
385 references to IBinaryInteger
PresentationCore.Tests (1)
FluentAssertions\ComparisonHelpers.cs (1)
11where T : struct, IBinaryInteger<T>
System.Collections.Immutable (3)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (3)
46where TKeyUnderlying : unmanaged, IBinaryInteger<TKeyUnderlying> 121where TKeyUnderlying : IBinaryInteger<TKeyUnderlying> 152where TKeyUnderlying : IBinaryInteger<TKeyUnderlying>
System.Formats.Tar (1)
System\Formats\Tar\TarHelpers.cs (1)
221internal static T ParseNumeric<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T>, IBinaryInteger<T>
System.Linq (11)
System\Linq\Max.cs (4)
16private readonly struct MaxCalc<T> : IMinMaxCalc<T> where T : struct, IBinaryInteger<T> 28private static T? MaxInteger<T>(this IEnumerable<T?> source) where T : struct, IBinaryInteger<T> 524private static TResult MaxInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) where TResult : struct, IBinaryInteger<TResult> 556private static TResult? MaxInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult?> selector) where TResult : struct, IBinaryInteger<TResult>
System\Linq\MaxMin.cs (2)
14private interface IMinMaxCalc<T> where T : struct, IBinaryInteger<T> 23where T : struct, IBinaryInteger<T>
System\Linq\Min.cs (4)
16private readonly struct MinCalc<T> : IMinMaxCalc<T> where T : struct, IBinaryInteger<T> 28private static T? MinInteger<T>(this IEnumerable<T?> source) where T : struct, IBinaryInteger<T> 503private static TResult MinInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) where TResult : struct, IBinaryInteger<TResult> 535private static TResult? MinInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult?> selector) where TResult : struct, IBinaryInteger<TResult>
System\Linq\Sum.cs (1)
81where T : struct, IBinaryInteger<T>, ISignedNumber<T>, IMinMaxValue<T>
System.Net.Primitives (15)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
24where TChar : unmanaged, IBinaryInteger<TChar> 35where TChar : unmanaged, IBinaryInteger<TChar> 101where TChar : unmanaged, IBinaryInteger<TChar> 128where TChar : unmanaged, IBinaryInteger<TChar> 206where TChar : unmanaged, IBinaryInteger<TChar>
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99where TChar : unmanaged, IBinaryInteger<TChar> 314where TChar : unmanaged, IBinaryInteger<TChar>
System\Net\IPAddress.cs (1)
500private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IBinaryInteger<TChar>
System\Net\IPAddressParser.cs (6)
20where TChar : unmanaged, IBinaryInteger<TChar> 34where TChar : unmanaged, IBinaryInteger<TChar> 63where TChar : unmanaged, IBinaryInteger<TChar> 81where TChar : unmanaged, IBinaryInteger<TChar> 137where TChar : unmanaged, IBinaryInteger<TChar> 182where TChar : unmanaged, IBinaryInteger<TChar>
System\Net\IPEndPoint.cs (1)
100where TChar : unmanaged, IBinaryInteger<TChar>
System.Net.Quic (7)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
24where TChar : unmanaged, IBinaryInteger<TChar> 35where TChar : unmanaged, IBinaryInteger<TChar> 101where TChar : unmanaged, IBinaryInteger<TChar> 128where TChar : unmanaged, IBinaryInteger<TChar> 206where TChar : unmanaged, IBinaryInteger<TChar>
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99where TChar : unmanaged, IBinaryInteger<TChar> 314where TChar : unmanaged, IBinaryInteger<TChar>
System.Net.Security (7)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
24where TChar : unmanaged, IBinaryInteger<TChar> 35where TChar : unmanaged, IBinaryInteger<TChar> 101where TChar : unmanaged, IBinaryInteger<TChar> 128where TChar : unmanaged, IBinaryInteger<TChar> 206where TChar : unmanaged, IBinaryInteger<TChar>
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99where TChar : unmanaged, IBinaryInteger<TChar> 314where TChar : unmanaged, IBinaryInteger<TChar>
System.Numerics.Tensors (35)
System\Numerics\Tensors\netcore\Tensor.cs (10)
3578where T : IBinaryInteger<T> 3591where T : IBinaryInteger<T> 4329where T : IBinaryInteger<T> 4340where T : IBinaryInteger<T> 4508where T : IBinaryInteger<T> 4521where T : IBinaryInteger<T> 4535where T : IBinaryInteger<T> 4548where T : IBinaryInteger<T> 4922where T : IBinaryInteger<T> 4933where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
1223where T : IBinaryInteger<T> 1702where T : IBinaryInteger<T> 1814where T : IBinaryInteger<T> 1828where T : IBinaryInteger<T> 2188where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
24where TTo : IBinaryInteger<TTo> => 30where TTo : IBinaryInteger<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
24where TTo : IBinaryInteger<TTo> => 30where TTo : IBinaryInteger<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.DivRem.cs (4)
30where T : IBinaryInteger<T> => 52where T : IBinaryInteger<T> => 74where T : IBinaryInteger<T> => 78private readonly struct DivRemOperator<T> : IBinaryInputBinaryOutput<T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.HammingDistance.cs (1)
20public static long HammingBitDistance<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (2)
25where T : IBinaryInteger<T> => 29internal readonly unsafe struct LeadingZeroCountOperator<T> : IUnaryOperator<T, T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (3)
17public static long PopCount<T>(ReadOnlySpan<T> x) where T : IBinaryInteger<T> 39where T : IBinaryInteger<T> => 43private readonly unsafe struct PopCountOperator<T> : IUnaryOperator<T, T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Rotate.cs (4)
22where T : IBinaryInteger<T> => 37where T : IBinaryInteger<T> => 41private readonly unsafe struct RotateLeftOperator<T>(int amount) : IStatefulUnaryOperator<T> where T : IBinaryInteger<T> 54private readonly unsafe struct RotateRightOperator<T>(int amount) : IStatefulUnaryOperator<T> where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (2)
24where T : IBinaryInteger<T> => 28private readonly unsafe struct TrailingZeroCountOperator<T> : IUnaryOperator<T, T> where T : IBinaryInteger<T>
System.Private.CoreLib (261)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (18)
278/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 281/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 284/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 287/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 290/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 293/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 296/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 297static bool IBinaryInteger<byte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 329/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 330static bool IBinaryInteger<byte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 362/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 363int IBinaryInteger<byte>.GetShortestBitLength() => (sizeof(byte) * 8) - LeadingZeroCount(m_value); 365/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 366int IBinaryInteger<byte>.GetByteCount() => sizeof(byte); 368/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 369bool IBinaryInteger<byte>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 386/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 387bool IBinaryInteger<byte>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Char.cs (22)
1214/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 1215static char IBinaryInteger<char>.LeadingZeroCount(char value) => (char)(BitOperations.LeadingZeroCount(value) - 16); 1217/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 1218static char IBinaryInteger<char>.PopCount(char value) => (char)BitOperations.PopCount(value); 1220/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 1221static char IBinaryInteger<char>.RotateLeft(char value, int rotateAmount) => (char)((value << (rotateAmount & 15)) | (value >> ((16 - rotateAmount) & 15))); 1223/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 1224static char IBinaryInteger<char>.RotateRight(char value, int rotateAmount) => (char)((value >> (rotateAmount & 15)) | (value << ((16 - rotateAmount) & 15))); 1226/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 1227static char IBinaryInteger<char>.TrailingZeroCount(char value) => (char)(BitOperations.TrailingZeroCount(value << 16) - 16); 1229/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1230static bool IBinaryInteger<char>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1279/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1280static bool IBinaryInteger<char>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1327/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 1328int IBinaryInteger<char>.GetShortestBitLength() => (sizeof(char) * 8) - ushort.LeadingZeroCount(m_value); 1330/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 1331int IBinaryInteger<char>.GetByteCount() => sizeof(char); 1333/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 1334bool IBinaryInteger<char>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 1346/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 1347bool IBinaryInteger<char>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1123where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1127where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
663where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 668where TInteger : IBinaryInteger<TInteger>
src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
1313where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1317where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\libraries\System.Private.CoreLib\src\System\Int128.cs (18)
707/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 714/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 729/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 733/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 737/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 741/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 751/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 752static bool IBinaryInteger<Int128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value) 833/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 834static bool IBinaryInteger<Int128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value) 918/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 919int IBinaryInteger<Int128>.GetShortestBitLength() 933/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 934int IBinaryInteger<Int128>.GetByteCount() => Size; 936/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 937bool IBinaryInteger<Int128>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 949/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 950bool IBinaryInteger<Int128>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Int16.cs (18)
281/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 284/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 287/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 290/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 293/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 296/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 299/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 300static bool IBinaryInteger<short>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 374/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 375static bool IBinaryInteger<short>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 447/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 448int IBinaryInteger<short>.GetShortestBitLength() 462/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 463int IBinaryInteger<short>.GetByteCount() => sizeof(short); 465/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 466bool IBinaryInteger<short>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 478/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 479bool IBinaryInteger<short>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (18)
296/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 299/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 303/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 307/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 311/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 315/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 319/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 320static bool IBinaryInteger<int>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 401/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 402static bool IBinaryInteger<int>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 486/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 487int IBinaryInteger<int>.GetShortestBitLength() 501/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 502int IBinaryInteger<int>.GetByteCount() => sizeof(int); 504/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 505bool IBinaryInteger<int>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 517/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 518bool IBinaryInteger<int>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (18)
293/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 296/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 300/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 304/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 308/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 312/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 316/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 317static bool IBinaryInteger<long>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 398/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 399static bool IBinaryInteger<long>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 483/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 484int IBinaryInteger<long>.GetShortestBitLength() 498/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 499int IBinaryInteger<long>.GetByteCount() => sizeof(long); 501/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 502bool IBinaryInteger<long>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 514/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 515bool IBinaryInteger<long>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (18)
316/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 319/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 323/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 327/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 331/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 335/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 339/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 340static bool IBinaryInteger<nint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 421/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 422static bool IBinaryInteger<nint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 506/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 507int IBinaryInteger<nint>.GetShortestBitLength() 521/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 522int IBinaryInteger<nint>.GetByteCount() => sizeof(nint_t); 524/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 525bool IBinaryInteger<nint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 537/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 538bool IBinaryInteger<nint>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (3)
519where TInteger : unmanaged, IBinaryInteger<TInteger> 536where TInteger : unmanaged, IBinaryInteger<TInteger>, ISignedNumber<TInteger> 600where TInteger : unmanaged, IBinaryInteger<TInteger>, IUnsignedNumber<TInteger>
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
11where TSelf : IBinaryInteger<TSelf>?
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (2)
24where TInteger : IBinaryInteger<TInteger> 34where TInteger : IBinaryInteger<TInteger>
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
71where TInteger : struct, IBinaryInteger<TInteger>, ISignedNumber<TInteger>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
985where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 989where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\libraries\System.Private.CoreLib\src\System\SByte.cs (18)
284/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 287/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 290/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 293/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 296/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 299/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 302/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 303static bool IBinaryInteger<sbyte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 355/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 356static bool IBinaryInteger<sbyte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 408/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 409int IBinaryInteger<sbyte>.GetShortestBitLength() 423/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 424int IBinaryInteger<sbyte>.GetByteCount() => sizeof(sbyte); 426/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 427bool IBinaryInteger<sbyte>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 440/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 441bool IBinaryInteger<sbyte>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
658where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 663where TInteger : IBinaryInteger<TInteger>
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (5)
158where TFrom : unmanaged, IBinaryInteger<TFrom> 159where TTo : unmanaged, IBinaryInteger<TTo> 193where T : unmanaged, IBinaryInteger<T> 207where TFrom : unmanaged, IBinaryInteger<TFrom> 208where TTo : unmanaged, IBinaryInteger<TTo>
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Trimming.cs (1)
41where T : unmanaged, IBinaryInteger<T>
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (18)
778/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 785/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 800/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 804/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 808/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 812/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 822/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 823static bool IBinaryInteger<UInt128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value) 879/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 880static bool IBinaryInteger<UInt128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value) 937/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 938int IBinaryInteger<UInt128>.GetShortestBitLength() 943/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 944int IBinaryInteger<UInt128>.GetByteCount() => Size; 946/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 947bool IBinaryInteger<UInt128>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 959/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 960bool IBinaryInteger<UInt128>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (18)
275/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 278/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 281/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 284/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 287/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 290/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 293/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 294static bool IBinaryInteger<ushort>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 343/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 344static bool IBinaryInteger<ushort>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 391/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 392int IBinaryInteger<ushort>.GetShortestBitLength() => (sizeof(ushort) * 8) - LeadingZeroCount(m_value); 394/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 395int IBinaryInteger<ushort>.GetByteCount() => sizeof(ushort); 397/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 398bool IBinaryInteger<ushort>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 410/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 411bool IBinaryInteger<ushort>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (18)
291/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 294/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 298/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 302/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 306/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 310/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 314/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 315static bool IBinaryInteger<uint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 371/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 372static bool IBinaryInteger<uint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 429/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 430int IBinaryInteger<uint>.GetShortestBitLength() => (sizeof(uint) * 8) - BitOperations.LeadingZeroCount(m_value); 432/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 433int IBinaryInteger<uint>.GetByteCount() => sizeof(uint); 435/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 436bool IBinaryInteger<uint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 448/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 449bool IBinaryInteger<uint>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (18)
290/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 293/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 297/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 301/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 305/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 309/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 313/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 314static bool IBinaryInteger<ulong>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 370/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 371static bool IBinaryInteger<ulong>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 428/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 429int IBinaryInteger<ulong>.GetShortestBitLength() => (sizeof(ulong) * 8) - BitOperations.LeadingZeroCount(m_value); 431/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 432int IBinaryInteger<ulong>.GetByteCount() => sizeof(ulong); 434/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 435bool IBinaryInteger<ulong>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 447/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 448bool IBinaryInteger<ulong>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (18)
312/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 315/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 319/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 323/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 327/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 331/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 335/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 336static bool IBinaryInteger<nuint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 392/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 393static bool IBinaryInteger<nuint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 450/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 451int IBinaryInteger<nuint>.GetShortestBitLength() => (sizeof(nuint_t) * 8) - BitOperations.LeadingZeroCount(_value); 453/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 454int IBinaryInteger<nuint>.GetByteCount() => sizeof(nuint_t); 456/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 457bool IBinaryInteger<nuint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 469/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 470bool IBinaryInteger<nuint>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
System.Private.Uri (7)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
24where TChar : unmanaged, IBinaryInteger<TChar> 35where TChar : unmanaged, IBinaryInteger<TChar> 101where TChar : unmanaged, IBinaryInteger<TChar> 128where TChar : unmanaged, IBinaryInteger<TChar> 206where TChar : unmanaged, IBinaryInteger<TChar>
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99where TChar : unmanaged, IBinaryInteger<TChar> 314where TChar : unmanaged, IBinaryInteger<TChar>
System.Private.Windows.Core.TestUtilities (7)
ComparisonHelpers.cs (1)
11where T : struct, IBinaryInteger<T>
XUnit\IntegerDataAttribute.cs (1)
12where TNumber : struct, IBinaryInteger<TNumber>, IMinMaxValue<TNumber>
XUnit\PositiveNumberDataAttribute.cs (1)
12: CommonMemberDataAttribute where TNumber : struct, IBinaryInteger<TNumber>, IMinMaxValue<TNumber>
XUnit\TestData.cs (4)
24where T : struct, IBinaryInteger<T>, IMinMaxValue<T> 31where T : struct, IBinaryInteger<T>, IMinMaxValue<T> 53where T : struct, IBinaryInteger<T>, IMinMaxValue<T> 76where T : struct, IBinaryInteger<T>, IMinMaxValue<T>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
378[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.IBinaryInteger<>))]
System.Runtime.Numerics (18)
System\Numerics\BigInteger.cs (18)
3184/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 3191/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 3207/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 3261/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 3282/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 3360/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 3388/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 3389static bool IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value) 3395/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 3396static bool IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value) 3402/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 3403int IBinaryInteger<BigInteger>.GetShortestBitLength() 3451/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 3452int IBinaryInteger<BigInteger>.GetByteCount() => GetGenericMathByteCount(); 3454/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 3455bool IBinaryInteger<BigInteger>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 3556/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 3557bool IBinaryInteger<BigInteger>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\MintermClassifier.cs (1)
80static T[] CreateLookup<T>(BDD[] minterms, ReadOnlySpan<object> charRangesPerMinterm, int _maxChar) where T : IBinaryInteger<T>
System.Threading.Tasks.Parallel (9)
System\Threading\Tasks\Parallel.cs (1)
916where TInt : struct, IBinaryInteger<TInt>, IMinMaxValue<TInt>
System\Threading\Tasks\Parallel.ForEachAsync.cs (4)
21where T : notnull, IBinaryInteger<T> 39where T : notnull, IBinaryInteger<T> 57where T : notnull, IBinaryInteger<T> 78where T : notnull, IBinaryInteger<T>
System\Threading\Tasks\ParallelLoopState.cs (3)
184internal static void Break<TInt>(TInt iteration, ParallelLoopStateFlags<TInt> pflags) where TInt : struct, IBinaryInteger<TInt>, IMinMaxValue<TInt> 224internal sealed class ParallelLoopState<TInt> : ParallelLoopState where TInt : struct, IBinaryInteger<TInt>, IMinMaxValue<TInt> 350where TInt : struct, IBinaryInteger<TInt>, IMinMaxValue<TInt>
System\Threading\Tasks\ParallelRangeManager.cs (1)
176internal bool FindNewWork<TInt>(out TInt fromInclusive, out TInt toExclusive) where TInt : struct, IBinaryInteger<TInt>, IMinMaxValue<TInt>
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1414static object ExecuteBinaryOperator<T>(T leftValue, T rightValue, CodeBinaryOperatorType op) where T : IBinaryInteger<T>