2 interfaces inheriting from IBinaryInteger
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IUtfChar.cs (1)
14IBinaryInteger<TSelf>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
29internal interface IBinaryIntegerParseAndFormatInfo<TSelf> : IBinaryInteger<TSelf>, IMinMaxValue<TSelf>
14 implementations of IBinaryInteger
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
22IBinaryInteger<byte>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
28IBinaryInteger<char>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
18: IBinaryInteger<Int128>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
24IBinaryInteger<short>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
24IBinaryInteger<int>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
24IBinaryInteger<long>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
33IBinaryInteger<nint>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
24IBinaryInteger<sbyte>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
20: IBinaryInteger<UInt128>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
24IBinaryInteger<ushort>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
24IBinaryInteger<uint>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
24IBinaryInteger<ulong>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
33IBinaryInteger<nuint>,
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
22IBinaryInteger<BigInteger>,
617 references to IBinaryInteger
ILCompiler.Compiler (16)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (14)
657where TSize : struct, IBinaryInteger<TSize> 942where TSize : struct, IBinaryInteger<TSize> 968where TSize : struct, IBinaryInteger<TSize> 978tempBuffer = tempBuffer.Slice(((IBinaryInteger<ushort>)Type).WriteLittleEndian(tempBuffer)); 979tempBuffer = tempBuffer.Slice(((IBinaryInteger<ushort>)Machine).WriteLittleEndian(tempBuffer)); 980tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Version).WriteLittleEndian(tempBuffer)); 1010where TSize : struct, IBinaryInteger<TSize> 1026where TSize : struct, IBinaryInteger<TSize> 1031tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)NameIndex).WriteLittleEndian(tempBuffer)); 1032tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Type).WriteLittleEndian(tempBuffer)); 1037tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Link).WriteLittleEndian(tempBuffer)); 1038tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Info).WriteLittleEndian(tempBuffer)); 1056where TSize : struct, IBinaryInteger<TSize> 1062where TSize : struct, IBinaryInteger<TSize>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
988where T : IBinaryInteger<T>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
114where T : IBinaryInteger<T>
ILCompiler.ReadyToRun (16)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (14)
657where TSize : struct, IBinaryInteger<TSize> 942where TSize : struct, IBinaryInteger<TSize> 968where TSize : struct, IBinaryInteger<TSize> 978tempBuffer = tempBuffer.Slice(((IBinaryInteger<ushort>)Type).WriteLittleEndian(tempBuffer)); 979tempBuffer = tempBuffer.Slice(((IBinaryInteger<ushort>)Machine).WriteLittleEndian(tempBuffer)); 980tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Version).WriteLittleEndian(tempBuffer)); 1010where TSize : struct, IBinaryInteger<TSize> 1026where TSize : struct, IBinaryInteger<TSize> 1031tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)NameIndex).WriteLittleEndian(tempBuffer)); 1032tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Type).WriteLittleEndian(tempBuffer)); 1037tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Link).WriteLittleEndian(tempBuffer)); 1038tempBuffer = tempBuffer.Slice(((IBinaryInteger<uint>)Info).WriteLittleEndian(tempBuffer)); 1056where TSize : struct, IBinaryInteger<TSize> 1062where TSize : struct, IBinaryInteger<TSize>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
988where T : IBinaryInteger<T>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
114where T : IBinaryInteger<T>
Microsoft.Diagnostics.DataContractReader (3)
ContractDescriptorTarget.cs (3)
508private static bool TryRead<T>(ulong address, bool isLittleEndian, DataTargetDelegates dataTargetDelegates, out T value) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T> 547private static bool TryWrite<T>(ulong address, bool isLittleEndian, DataTargetDelegates dataTargetDelegates, T value) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T> 560private static T Read<T>(ReadOnlySpan<byte> bytes, bool isLittleEndian) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T>
Microsoft.Diagnostics.DataContractReader.Abstractions (8)
Target.cs (4)
195public abstract T Read<T>(ulong address) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T>; 203public abstract T ReadLittleEndian<T>(ulong address) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T>; 211public abstract bool TryRead<T>(ulong address, out T value) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T>; 219public abstract void Write<T>(ulong address, T value) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T>;
TargetFieldExtensions.cs (4)
21where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T> 34where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T> 164where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T> 205where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T>
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\EcmaMetadata_1.cs (1)
530where T : IBinaryInteger<T>
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Dbi\DacDbiImpl.cs (2)
6799private static void WriteLittleEndian<T>(ref T dest, T value) where T : unmanaged, IBinaryInteger<T> 6812internal static T ReadLittleEndian<T>(T value) where T : unmanaged, 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 (9)
System\Linq\Max.cs (4)
15private static T MaxIntegerEnumerator<T>(IEnumerable<T> source) where T : struct, IBinaryInteger<T> 40private static T? MaxInteger<T>(this IEnumerable<T?> source) where T : struct, IBinaryInteger<T> 545private static TResult MaxInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) where TResult : struct, IBinaryInteger<TResult> 577private static TResult? MaxInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult?> selector) where TResult : struct, IBinaryInteger<TResult>
System\Linq\Min.cs (4)
15private static T MinIntegerEnumerator<T>(IEnumerable<T> source) where T : struct, IBinaryInteger<T> 40private static T? MinInteger<T>(this IEnumerable<T?> source) where T : struct, IBinaryInteger<T> 524private static TResult MinInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) where TResult : struct, IBinaryInteger<TResult> 556private static TResult? MinInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult?> selector) where TResult : struct, IBinaryInteger<TResult>
System\Linq\Sum.cs (1)
80where T : struct, IBinaryInteger<T>, ISignedNumber<T>, IMinMaxValue<T>
System.Net.Primitives (15)
src\runtime\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\runtime\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 unsafe 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\runtime\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\runtime\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\runtime\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\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99where TChar : unmanaged, IBinaryInteger<TChar> 314where TChar : unmanaged, IBinaryInteger<TChar>
System.Numerics.Tensors (38)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (3)
86where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt : IBinaryInteger<TInt> 317where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt : IBinaryInteger<TInt> 548where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt : IBinaryInteger<TInt>
System\Numerics\Tensors\netcore\Tensor.cs (10)
3774where T : IBinaryInteger<T> 3787where T : IBinaryInteger<T> 4525where T : IBinaryInteger<T> 4536where T : IBinaryInteger<T> 4704where T : IBinaryInteger<T> 4717where T : IBinaryInteger<T> 4731where T : IBinaryInteger<T> 4744where T : IBinaryInteger<T> 5118where T : IBinaryInteger<T> 5129where T : IBinaryInteger<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
1243where T : IBinaryInteger<T> 1722where T : IBinaryInteger<T> 1834where T : IBinaryInteger<T> 1848where T : IBinaryInteger<T> 2208where 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 (445)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (19)
272/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 275/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 278/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(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<byte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 326/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 327static bool IBinaryInteger<byte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 359/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 360int IBinaryInteger<byte>.GetShortestBitLength() => (sizeof(byte) * 8) - LeadingZeroCount(m_value); 362/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 363int IBinaryInteger<byte>.GetByteCount() => sizeof(byte); 365/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 366bool IBinaryInteger<byte>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 382/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 383bool IBinaryInteger<byte>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (24)
1229/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 1230static char IBinaryInteger<char>.LeadingZeroCount(char value) => (char)(BitOperations.LeadingZeroCount(value) - 16); 1232/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 1233static char IBinaryInteger<char>.Log10(char value) => (char)uint.Log10(value); 1235/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 1236static char IBinaryInteger<char>.PopCount(char value) => (char)BitOperations.PopCount(value); 1238/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 1239static char IBinaryInteger<char>.RotateLeft(char value, int rotateAmount) => (char)((value << (rotateAmount & 15)) | (value >> ((16 - rotateAmount) & 15))); 1241/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 1242static char IBinaryInteger<char>.RotateRight(char value, int rotateAmount) => (char)((value >> (rotateAmount & 15)) | (value << ((16 - rotateAmount) & 15))); 1244/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 1245static char IBinaryInteger<char>.TrailingZeroCount(char value) => (char)(BitOperations.TrailingZeroCount(value << 16) - 16); 1247/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1248static bool IBinaryInteger<char>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1288/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1289static bool IBinaryInteger<char>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1329/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 1330int IBinaryInteger<char>.GetShortestBitLength() => (sizeof(char) * 8) - ushort.LeadingZeroCount(m_value); 1332/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 1333int IBinaryInteger<char>.GetByteCount() => sizeof(char); 1335/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 1336bool IBinaryInteger<char>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 1348/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 1349bool IBinaryInteger<char>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1117where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1121where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
659where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 664where TInteger : IBinaryInteger<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
1350where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1354where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (19)
701/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 708/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 723/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 733/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 737/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 741/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 745/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 755/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 756static bool IBinaryInteger<Int128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value) 828/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 829static bool IBinaryInteger<Int128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value) 906/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 907int IBinaryInteger<Int128>.GetShortestBitLength() 921/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 922int IBinaryInteger<Int128>.GetByteCount() => Size; 924/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 925bool IBinaryInteger<Int128>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 937/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 938bool IBinaryInteger<Int128>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (19)
275/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 278/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 281/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 291/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 294/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 297/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 300/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 303/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 304static bool IBinaryInteger<short>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 369/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 370static bool IBinaryInteger<short>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 435/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 436int IBinaryInteger<short>.GetShortestBitLength() 450/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 451int IBinaryInteger<short>.GetByteCount() => sizeof(short); 453/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 454bool IBinaryInteger<short>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 466/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 467bool IBinaryInteger<short>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (19)
290/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 293/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 297/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 308/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 312/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 316/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 320/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 324/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 325static bool IBinaryInteger<int>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 397/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 398static bool IBinaryInteger<int>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 475/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 476int IBinaryInteger<int>.GetShortestBitLength() 490/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 491int IBinaryInteger<int>.GetByteCount() => sizeof(int); 493/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 494bool IBinaryInteger<int>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 506/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 507bool IBinaryInteger<int>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (19)
287/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 290/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 294/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 305/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 309/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 313/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 317/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 321/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 322static bool IBinaryInteger<long>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 394/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 395static bool IBinaryInteger<long>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 472/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 473int IBinaryInteger<long>.GetShortestBitLength() 487/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 488int IBinaryInteger<long>.GetByteCount() => sizeof(long); 490/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 491bool IBinaryInteger<long>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 503/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 504bool IBinaryInteger<long>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (19)
320/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 323/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 327/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 338/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 342/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 346/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 350/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 354/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 355static bool IBinaryInteger<nint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 427/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 428static bool IBinaryInteger<nint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 505/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 506int IBinaryInteger<nint>.GetShortestBitLength() 520/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 521int IBinaryInteger<nint>.GetByteCount() => sizeof(nint_t); 523/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 524bool IBinaryInteger<nint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 536/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 537bool IBinaryInteger<nint>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.MinMax.cs (6)
200private interface IMinMaxCalc<T> where T : struct, IBinaryInteger<T> 208private readonly struct MinCalc<T> : IMinMaxCalc<T> where T : struct, IBinaryInteger<T> 216private readonly struct MaxCalc<T> : IMinMaxCalc<T> where T : struct, IBinaryInteger<T> 225where TInner : struct, IBinaryInteger<TInner> 230where T : struct, IBinaryInteger<T> 313where T : struct, IBinaryInteger<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (87)
15where TValue : unmanaged, IBinaryInteger<TValue> 40where TSignificand : IBinaryInteger<TSignificand> 63where TValue : unmanaged, IBinaryInteger<TValue> 112where TValue : unmanaged, IBinaryInteger<TValue> 244where TValue : unmanaged, IBinaryInteger<TValue> 318where TValue : unmanaged, IBinaryInteger<TValue> 327where TValue : unmanaged, IBinaryInteger<TValue> 336where TValue : unmanaged, IBinaryInteger<TValue> 345where TValue : unmanaged, IBinaryInteger<TValue> 353where TValue : unmanaged, IBinaryInteger<TValue> 477where TValue : unmanaged, IBinaryInteger<TValue> 525where TValue : unmanaged, IBinaryInteger<TValue> 580where TValue : unmanaged, IBinaryInteger<TValue> 628where TValue : unmanaged, IBinaryInteger<TValue> 648where TValue : unmanaged, IBinaryInteger<TValue> 731where TValue : unmanaged, IBinaryInteger<TValue> 768where TValue : unmanaged, IBinaryInteger<TValue> 840where TValue : unmanaged, IBinaryInteger<TValue> 870where TValue : unmanaged, IBinaryInteger<TValue> 888where TValue : unmanaged, IBinaryInteger<TValue> 1104where TValue : unmanaged, IBinaryInteger<TValue> 1133where TValue : unmanaged, IBinaryInteger<TValue> 1210where TValue : unmanaged, IBinaryInteger<TValue> 1264where TValue : unmanaged, IBinaryInteger<TValue> 1472where TValue : unmanaged, IBinaryInteger<TValue> 1628where TValue : unmanaged, IBinaryInteger<TValue>, IMinMaxValue<TValue> 1737where TValue : unmanaged, IBinaryInteger<TValue>, IMinMaxValue<TValue> 1854where TValue : unmanaged, IBinaryInteger<TValue>, IMinMaxValue<TValue> 1930where TValue : unmanaged, IBinaryInteger<TValue> 2028where TValue : unmanaged, IBinaryInteger<TValue> 2053where TValue : unmanaged, IBinaryInteger<TValue> 2150where TValue : unmanaged, IBinaryInteger<TValue> 2249where TValue : unmanaged, IBinaryInteger<TValue> 2278where TValue : unmanaged, IBinaryInteger<TValue> 2306where TValue : unmanaged, IBinaryInteger<TValue> 2391where TValue : unmanaged, IBinaryInteger<TValue> 2407where TValue : unmanaged, IBinaryInteger<TValue> 2429where TValue : unmanaged, IBinaryInteger<TValue> 2484where TValue : unmanaged, IBinaryInteger<TValue> 2507where TValue : unmanaged, IBinaryInteger<TValue> 2526where TValue : unmanaged, IBinaryInteger<TValue> 2553where TValue : unmanaged, IBinaryInteger<TValue> 2571where TValue : unmanaged, IBinaryInteger<TValue> 2587where TValue : unmanaged, IBinaryInteger<TValue> 2598where TValue : unmanaged, IBinaryInteger<TValue> 2620where TValue : unmanaged, IBinaryInteger<TValue> 2641where TValue : unmanaged, IBinaryInteger<TValue> 2669where TValue : unmanaged, IBinaryInteger<TValue> 2703where TValue : unmanaged, IBinaryInteger<TValue> 2748where TValue : unmanaged, IBinaryInteger<TValue> 2788where TValue : unmanaged, IBinaryInteger<TValue> 2896where TValue : unmanaged, IBinaryInteger<TValue> 2977where TValue : unmanaged, IBinaryInteger<TValue> 3015where TValue : unmanaged, IBinaryInteger<TValue> 3027where TValue : unmanaged, IBinaryInteger<TValue> 3039where TValue : unmanaged, IBinaryInteger<TValue> 3089where TValue : unmanaged, IBinaryInteger<TValue> 3096where TValue : unmanaged, IBinaryInteger<TValue> 3103where TValue : unmanaged, IBinaryInteger<TValue> 3110where TValue : unmanaged, IBinaryInteger<TValue> 3129where TValue : unmanaged, IBinaryInteger<TValue> 3170where TValue : unmanaged, IBinaryInteger<TValue> 3194where TValue : unmanaged, IBinaryInteger<TValue> 3218where TValue : unmanaged, IBinaryInteger<TValue> 3238where TValue : unmanaged, IBinaryInteger<TValue> 3258where TValue : unmanaged, IBinaryInteger<TValue> 3278where TValue : unmanaged, IBinaryInteger<TValue> 3302where TValue : unmanaged, IBinaryInteger<TValue> 3324where TValue : unmanaged, IBinaryInteger<TValue> 3346where TValue : unmanaged, IBinaryInteger<TValue> 3353where TValue : unmanaged, IBinaryInteger<TValue> 3360where TValue : unmanaged, IBinaryInteger<TValue> 3377where TValue : unmanaged, IBinaryInteger<TValue> 3394where TValue : unmanaged, IBinaryInteger<TValue> 3403where TValue : unmanaged, IBinaryInteger<TValue> 3443where TValue : unmanaged, IBinaryInteger<TValue> 3511where TValue : unmanaged, IBinaryInteger<TValue> 3512where TInteger : IBinaryInteger<TInteger>, IMinMaxValue<TInteger> 3602where TValue : unmanaged, IBinaryInteger<TValue> 3603where TInteger : IBinaryInteger<TInteger> 3630where TValue : unmanaged, IBinaryInteger<TValue> 3682where TSourceValue : unmanaged, IBinaryInteger<TSourceValue> 3684where TTargetValue : unmanaged, IBinaryInteger<TTargetValue> 3716where TValue : unmanaged, IBinaryInteger<TValue> 3793where TValue : unmanaged, IBinaryInteger<TValue> 3882where TValue : unmanaged, IBinaryInteger<TValue> 3925where TValue : unmanaged, IBinaryInteger<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Conversions.cs (4)
49where TValue : unmanaged, IBinaryInteger<TValue> 81where TValue : unmanaged, IBinaryInteger<TValue> 97where TValue : unmanaged, IBinaryInteger<TValue> 178where TValue : unmanaged, IBinaryInteger<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.Transcendental.cs (44)
26where TValue : unmanaged, IBinaryInteger<TValue> 60where TValue : unmanaged, IBinaryInteger<TValue> 94where TValue : unmanaged, IBinaryInteger<TValue> 128where TValue : unmanaged, IBinaryInteger<TValue> 164where TValue : unmanaged, IBinaryInteger<TValue> 200where TValue : unmanaged, IBinaryInteger<TValue> 254where TValue : unmanaged, IBinaryInteger<TValue> 281where TValue : unmanaged, IBinaryInteger<TValue> 322where TValue : unmanaged, IBinaryInteger<TValue> 362where TValue : unmanaged, IBinaryInteger<TValue> 402where TValue : unmanaged, IBinaryInteger<TValue> 442where TValue : unmanaged, IBinaryInteger<TValue> 450where TValue : unmanaged, IBinaryInteger<TValue> 458where TValue : unmanaged, IBinaryInteger<TValue> 473where TValue : unmanaged, IBinaryInteger<TValue> 550where TValue : unmanaged, IBinaryInteger<TValue> 595where TValue : unmanaged, IBinaryInteger<TValue> 629where TValue : unmanaged, IBinaryInteger<TValue> 778where TValue : unmanaged, IBinaryInteger<TValue> 813where TValue : unmanaged, IBinaryInteger<TValue> 864where TValue : unmanaged, IBinaryInteger<TValue> 965where TValue : unmanaged, IBinaryInteger<TValue> 977where TValue : unmanaged, IBinaryInteger<TValue> 1011where TValue : unmanaged, IBinaryInteger<TValue> 1045where TValue : unmanaged, IBinaryInteger<TValue> 1079where TValue : unmanaged, IBinaryInteger<TValue> 1119where TValue : unmanaged, IBinaryInteger<TValue> 1162where TValue : unmanaged, IBinaryInteger<TValue> 1203where TValue : unmanaged, IBinaryInteger<TValue> 1248where TValue : unmanaged, IBinaryInteger<TValue> 1313where TValue : unmanaged, IBinaryInteger<TValue> 1347where TValue : unmanaged, IBinaryInteger<TValue> 1381where TValue : unmanaged, IBinaryInteger<TValue> 1424where TValue : unmanaged, IBinaryInteger<TValue> 1464where TValue : unmanaged, IBinaryInteger<TValue> 1508where TValue : unmanaged, IBinaryInteger<TValue> 1551where TValue : unmanaged, IBinaryInteger<TValue> 1598where TValue : unmanaged, IBinaryInteger<TValue> 1665where TValue : unmanaged, IBinaryInteger<TValue> 1699where TValue : unmanaged, IBinaryInteger<TValue> 1733where TValue : unmanaged, IBinaryInteger<TValue> 1767where TValue : unmanaged, IBinaryInteger<TValue> 1801where TValue : unmanaged, IBinaryInteger<TValue> 1842where TValue : unmanaged, IBinaryInteger<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (4)
343where TValue : unmanaged, IBinaryInteger<TValue> 353where TValue : unmanaged, IBinaryInteger<TValue> 418where TValue : unmanaged, IBinaryInteger<TValue> 581where TValue : unmanaged, IBinaryInteger<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (4)
137where TValue : unmanaged, IBinaryInteger<TValue> 829where TValue : unmanaged, IBinaryInteger<TValue> 996where TValue : unmanaged, IBinaryInteger<TValue> 1771where TValue : unmanaged, IBinaryInteger<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (1)
207where TUInt : unmanaged, IBinaryInteger<TUInt>, IUnsignedNumber<TUInt>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (3)
515where TInteger : unmanaged, IBinaryInteger<TInteger> 532where TInteger : unmanaged, IBinaryInteger<TInteger>, ISignedNumber<TInteger> 600where TInteger : unmanaged, IBinaryInteger<TInteger>, IUnsignedNumber<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (2)
821where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 825where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (2)
832where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 836where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (2)
825where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 829where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
11where TSelf : IBinaryInteger<TSelf>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (2)
24where TInteger : IBinaryInteger<TInteger> 34where TInteger : IBinaryInteger<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
94where TInteger : struct, IBinaryInteger<TInteger>, ISignedNumber<TInteger> 326where TValue : unmanaged, IBinaryInteger<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (5)
195public T NextInteger<T>() where T : IBinaryInteger<T>, IMinMaxValue<T> 255public T NextInteger<T>(T maxValue) where T : IBinaryInteger<T> 275public T NextInteger<T>(T minValue, T maxValue) where T : IBinaryInteger<T> 291private T NextBinaryIntegerInRange<T>(T maxExclusive) where T : IBinaryInteger<T> 378private T NextBinaryIntegerFullRange<T>(T minValue, T maxValue) where T : IBinaryInteger<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
984where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 988where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
3416where TIndex : IBinaryInteger<TIndex> 3440where TIndex : IBinaryInteger<TIndex>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
3459where TIndex : IBinaryInteger<TIndex> 3483where TIndex : IBinaryInteger<TIndex>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
3486where TIndex : IBinaryInteger<TIndex> 3510where TIndex : IBinaryInteger<TIndex>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
3600where TIndex : IBinaryInteger<TIndex> 3624where TIndex : IBinaryInteger<TIndex>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (19)
278/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 281/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 284/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 294/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 297/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 300/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 303/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 306/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 307static bool IBinaryInteger<sbyte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 359/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 360static bool IBinaryInteger<sbyte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 412/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 413int IBinaryInteger<sbyte>.GetShortestBitLength() 427/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 428int IBinaryInteger<sbyte>.GetByteCount() => sizeof(sbyte); 430/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 431bool IBinaryInteger<sbyte>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 444/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 445bool IBinaryInteger<sbyte>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
652where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 657where TInteger : IBinaryInteger<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (5)
159where TFrom : unmanaged, IBinaryInteger<TFrom> 160where TTo : unmanaged, IBinaryInteger<TTo> 194where T : unmanaged, IBinaryInteger<T> 208where TFrom : unmanaged, IBinaryInteger<TFrom> 209where TTo : unmanaged, IBinaryInteger<TTo>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Trimming.cs (1)
41where T : unmanaged, IBinaryInteger<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (19)
772/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 1004/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 1019/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 1081/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 1085/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 1089/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 1093/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 1103/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1104static bool IBinaryInteger<UInt128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value) 1151/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1152static bool IBinaryInteger<UInt128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value) 1202/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 1203int IBinaryInteger<UInt128>.GetShortestBitLength() 1208/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 1209int IBinaryInteger<UInt128>.GetByteCount() => Size; 1211/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 1212bool IBinaryInteger<UInt128>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 1224/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 1225bool IBinaryInteger<UInt128>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (19)
269/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 272/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 275/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 278/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 281/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 284/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 287/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 290/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 291static bool IBinaryInteger<ushort>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 331/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 332static bool IBinaryInteger<ushort>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 372/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 373int IBinaryInteger<ushort>.GetShortestBitLength() => (sizeof(ushort) * 8) - LeadingZeroCount(m_value); 375/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 376int IBinaryInteger<ushort>.GetByteCount() => sizeof(ushort); 378/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 379bool IBinaryInteger<ushort>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 391/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 392bool IBinaryInteger<ushort>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (19)
285/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 288/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 292/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 321/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 325/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 329/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 333/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 337/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 338static bool IBinaryInteger<uint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 385/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 386static bool IBinaryInteger<uint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 436/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 437int IBinaryInteger<uint>.GetShortestBitLength() => (sizeof(uint) * 8) - BitOperations.LeadingZeroCount(m_value); 439/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 440int IBinaryInteger<uint>.GetByteCount() => sizeof(uint); 442/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 443bool IBinaryInteger<uint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 455/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 456bool IBinaryInteger<uint>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (19)
284/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 287/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 291/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 328/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 332/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 336/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 340/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 344/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 345static bool IBinaryInteger<ulong>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 392/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 393static bool IBinaryInteger<ulong>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 443/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 444int IBinaryInteger<ulong>.GetShortestBitLength() => (sizeof(ulong) * 8) - BitOperations.LeadingZeroCount(m_value); 446/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 447int IBinaryInteger<ulong>.GetByteCount() => sizeof(ulong); 449/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 450bool IBinaryInteger<ulong>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 462/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 463bool IBinaryInteger<ulong>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (19)
316/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 319/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 323/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 333/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 337/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 341/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 345/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 349/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 350static bool IBinaryInteger<nuint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 397/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 398static bool IBinaryInteger<nuint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 448/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 449int IBinaryInteger<nuint>.GetShortestBitLength() => (sizeof(nuint_t) * 8) - BitOperations.LeadingZeroCount(_value); 451/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 452int IBinaryInteger<nuint>.GetByteCount() => sizeof(nuint_t); 454/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 455bool IBinaryInteger<nuint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 467/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 468bool IBinaryInteger<nuint>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
System.Private.Uri (7)
src\runtime\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\runtime\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)
12where T : struct, IBinaryInteger<T>
XUnit\IntegerDataAttribute.cs (1)
13where TNumber : struct, IBinaryInteger<TNumber>, IMinMaxValue<TNumber>
XUnit\PositiveNumberDataAttribute.cs (1)
13: CommonMemberDataAttribute where TNumber : struct, IBinaryInteger<TNumber>, IMinMaxValue<TNumber>
XUnit\TestData.cs (4)
26where T : struct, IBinaryInteger<T>, IMinMaxValue<T> 33where T : struct, IBinaryInteger<T>, IMinMaxValue<T> 55where T : struct, IBinaryInteger<T>, IMinMaxValue<T> 78where T : struct, IBinaryInteger<T>, IMinMaxValue<T>
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
385[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.IBinaryInteger<>))]
System.Runtime.Numerics (20)
System\Numerics\BigInteger.cs (20)
3335/// <inheritdoc cref="IBinaryInteger{TSelf}.Log10(TSelf)" /> 3336static BigInteger IBinaryInteger<BigInteger>.Log10(BigInteger value) 3365/// <inheritdoc cref="IBinaryInteger{TSelf}.DivRem(TSelf, TSelf)" /> 3372/// <inheritdoc cref="IBinaryInteger{TSelf}.LeadingZeroCount(TSelf)" /> 3394/// <inheritdoc cref="IBinaryInteger{TSelf}.PopCount(TSelf)" /> 3449/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateLeft(TSelf, int)" /> 3470/// <inheritdoc cref="IBinaryInteger{TSelf}.RotateRight(TSelf, int)" /> 3747/// <inheritdoc cref="IBinaryInteger{TSelf}.TrailingZeroCount(TSelf)" /> 3773/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 3774static bool IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value) 3780/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 3781static bool IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value) 3787/// <inheritdoc cref="IBinaryInteger{TSelf}.GetShortestBitLength()" /> 3788int IBinaryInteger<BigInteger>.GetShortestBitLength() 3824/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" /> 3825int IBinaryInteger<BigInteger>.GetByteCount() => GetGenericMathByteCount(); 3827/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteBigEndian(Span{byte}, out int)" /> 3828bool IBinaryInteger<BigInteger>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten) 3905/// <inheritdoc cref="IBinaryInteger{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" /> 3906bool 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>