2 interfaces inheriting from IBinaryInteger
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IUtfChar.cs (1)
14
IBinaryInteger
<TSelf>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
29
internal 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)
22
IBinaryInteger
<byte>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
28
IBinaryInteger
<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)
24
IBinaryInteger
<short>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
24
IBinaryInteger
<int>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
24
IBinaryInteger
<long>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
33
IBinaryInteger
<nint>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
24
IBinaryInteger
<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)
24
IBinaryInteger
<ushort>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
24
IBinaryInteger
<uint>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
24
IBinaryInteger
<ulong>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
33
IBinaryInteger
<nuint>,
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
22
IBinaryInteger
<BigInteger>,
617 references to IBinaryInteger
ILCompiler.Compiler (16)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (14)
657
where TSize : struct,
IBinaryInteger
<TSize>
942
where TSize : struct,
IBinaryInteger
<TSize>
968
where TSize : struct,
IBinaryInteger
<TSize>
978
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<ushort>)Type).WriteLittleEndian(tempBuffer));
979
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<ushort>)Machine).WriteLittleEndian(tempBuffer));
980
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Version).WriteLittleEndian(tempBuffer));
1010
where TSize : struct,
IBinaryInteger
<TSize>
1026
where TSize : struct,
IBinaryInteger
<TSize>
1031
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)NameIndex).WriteLittleEndian(tempBuffer));
1032
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Type).WriteLittleEndian(tempBuffer));
1037
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Link).WriteLittleEndian(tempBuffer));
1038
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Info).WriteLittleEndian(tempBuffer));
1056
where TSize : struct,
IBinaryInteger
<TSize>
1062
where TSize : struct,
IBinaryInteger
<TSize>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
988
where T :
IBinaryInteger
<T>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
114
where T :
IBinaryInteger
<T>
ILCompiler.ReadyToRun (16)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (14)
657
where TSize : struct,
IBinaryInteger
<TSize>
942
where TSize : struct,
IBinaryInteger
<TSize>
968
where TSize : struct,
IBinaryInteger
<TSize>
978
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<ushort>)Type).WriteLittleEndian(tempBuffer));
979
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<ushort>)Machine).WriteLittleEndian(tempBuffer));
980
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Version).WriteLittleEndian(tempBuffer));
1010
where TSize : struct,
IBinaryInteger
<TSize>
1026
where TSize : struct,
IBinaryInteger
<TSize>
1031
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)NameIndex).WriteLittleEndian(tempBuffer));
1032
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Type).WriteLittleEndian(tempBuffer));
1037
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Link).WriteLittleEndian(tempBuffer));
1038
tempBuffer = tempBuffer.Slice(((
IBinaryInteger
<uint>)Info).WriteLittleEndian(tempBuffer));
1056
where TSize : struct,
IBinaryInteger
<TSize>
1062
where TSize : struct,
IBinaryInteger
<TSize>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
988
where T :
IBinaryInteger
<T>
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
114
where T :
IBinaryInteger
<T>
Microsoft.Diagnostics.DataContractReader (3)
ContractDescriptorTarget.cs (3)
508
private static bool TryRead<T>(ulong address, bool isLittleEndian, DataTargetDelegates dataTargetDelegates, out T value) where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>
547
private static bool TryWrite<T>(ulong address, bool isLittleEndian, DataTargetDelegates dataTargetDelegates, T value) where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>
560
private static T Read<T>(ReadOnlySpan<byte> bytes, bool isLittleEndian) where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>
Microsoft.Diagnostics.DataContractReader.Abstractions (8)
Target.cs (4)
195
public abstract T Read<T>(ulong address) where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>;
203
public abstract T ReadLittleEndian<T>(ulong address) where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>;
211
public abstract bool TryRead<T>(ulong address, out T value) where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>;
219
public abstract void Write<T>(ulong address, T value) where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>;
TargetFieldExtensions.cs (4)
21
where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>
34
where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>
164
where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>
205
where T : unmanaged,
IBinaryInteger
<T>, IMinMaxValue<T>
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\EcmaMetadata_1.cs (1)
530
where T :
IBinaryInteger
<T>
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Dbi\DacDbiImpl.cs (2)
6799
private static void WriteLittleEndian<T>(ref T dest, T value) where T : unmanaged,
IBinaryInteger
<T>
6812
internal static T ReadLittleEndian<T>(T value) where T : unmanaged,
IBinaryInteger
<T>
System.Collections.Immutable (3)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (3)
46
where TKeyUnderlying : unmanaged,
IBinaryInteger
<TKeyUnderlying>
121
where TKeyUnderlying :
IBinaryInteger
<TKeyUnderlying>
152
where TKeyUnderlying :
IBinaryInteger
<TKeyUnderlying>
System.Formats.Tar (1)
System\Formats\Tar\TarHelpers.cs (1)
221
internal static T ParseNumeric<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T>,
IBinaryInteger
<T>
System.Linq (9)
System\Linq\Max.cs (4)
15
private static T MaxIntegerEnumerator<T>(IEnumerable<T> source) where T : struct,
IBinaryInteger
<T>
40
private static T? MaxInteger<T>(this IEnumerable<T?> source) where T : struct,
IBinaryInteger
<T>
545
private static TResult MaxInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) where TResult : struct,
IBinaryInteger
<TResult>
577
private static TResult? MaxInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult?> selector) where TResult : struct,
IBinaryInteger
<TResult>
System\Linq\Min.cs (4)
15
private static T MinIntegerEnumerator<T>(IEnumerable<T> source) where T : struct,
IBinaryInteger
<T>
40
private static T? MinInteger<T>(this IEnumerable<T?> source) where T : struct,
IBinaryInteger
<T>
524
private static TResult MinInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) where TResult : struct,
IBinaryInteger
<TResult>
556
private static TResult? MinInteger<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult?> selector) where TResult : struct,
IBinaryInteger
<TResult>
System\Linq\Sum.cs (1)
80
where T : struct,
IBinaryInteger
<T>, ISignedNumber<T>, IMinMaxValue<T>
System.Net.Primitives (15)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
24
where TChar : unmanaged,
IBinaryInteger
<TChar>
35
where TChar : unmanaged,
IBinaryInteger
<TChar>
101
where TChar : unmanaged,
IBinaryInteger
<TChar>
128
where TChar : unmanaged,
IBinaryInteger
<TChar>
206
where TChar : unmanaged,
IBinaryInteger
<TChar>
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99
where TChar : unmanaged,
IBinaryInteger
<TChar>
314
where TChar : unmanaged,
IBinaryInteger
<TChar>
System\Net\IPAddress.cs (1)
500
private unsafe bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten) where TChar : unmanaged,
IBinaryInteger
<TChar>
System\Net\IPAddressParser.cs (6)
20
where TChar : unmanaged,
IBinaryInteger
<TChar>
34
where TChar : unmanaged,
IBinaryInteger
<TChar>
63
where TChar : unmanaged,
IBinaryInteger
<TChar>
81
where TChar : unmanaged,
IBinaryInteger
<TChar>
137
where TChar : unmanaged,
IBinaryInteger
<TChar>
182
where TChar : unmanaged,
IBinaryInteger
<TChar>
System\Net\IPEndPoint.cs (1)
100
where TChar : unmanaged,
IBinaryInteger
<TChar>
System.Net.Quic (7)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
24
where TChar : unmanaged,
IBinaryInteger
<TChar>
35
where TChar : unmanaged,
IBinaryInteger
<TChar>
101
where TChar : unmanaged,
IBinaryInteger
<TChar>
128
where TChar : unmanaged,
IBinaryInteger
<TChar>
206
where TChar : unmanaged,
IBinaryInteger
<TChar>
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99
where TChar : unmanaged,
IBinaryInteger
<TChar>
314
where TChar : unmanaged,
IBinaryInteger
<TChar>
System.Net.Security (7)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (5)
24
where TChar : unmanaged,
IBinaryInteger
<TChar>
35
where TChar : unmanaged,
IBinaryInteger
<TChar>
101
where TChar : unmanaged,
IBinaryInteger
<TChar>
128
where TChar : unmanaged,
IBinaryInteger
<TChar>
206
where TChar : unmanaged,
IBinaryInteger
<TChar>
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99
where TChar : unmanaged,
IBinaryInteger
<TChar>
314
where TChar : unmanaged,
IBinaryInteger
<TChar>
System.Numerics.Tensors (38)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (3)
86
where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt :
IBinaryInteger
<TInt>
317
where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt :
IBinaryInteger
<TInt>
548
where T : INumber<T> where TOperator : struct, IIndexOfMinMaxOperator<T> where TInt :
IBinaryInteger
<TInt>
System\Numerics\Tensors\netcore\Tensor.cs (10)
3774
where T :
IBinaryInteger
<T>
3787
where T :
IBinaryInteger
<T>
4525
where T :
IBinaryInteger
<T>
4536
where T :
IBinaryInteger
<T>
4704
where T :
IBinaryInteger
<T>
4717
where T :
IBinaryInteger
<T>
4731
where T :
IBinaryInteger
<T>
4744
where T :
IBinaryInteger
<T>
5118
where T :
IBinaryInteger
<T>
5129
where T :
IBinaryInteger
<T>
System\Numerics\Tensors\netcore\TensorOperation.cs (5)
1243
where T :
IBinaryInteger
<T>
1722
where T :
IBinaryInteger
<T>
1834
where T :
IBinaryInteger
<T>
1848
where T :
IBinaryInteger
<T>
2208
where T :
IBinaryInteger
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (2)
24
where TTo :
IBinaryInteger
<TTo> =>
30
where TTo :
IBinaryInteger
<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (2)
24
where TTo :
IBinaryInteger
<TTo> =>
30
where TTo :
IBinaryInteger
<TTo>
System\Numerics\Tensors\netcore\TensorPrimitives.DivRem.cs (4)
30
where T :
IBinaryInteger
<T> =>
52
where T :
IBinaryInteger
<T> =>
74
where T :
IBinaryInteger
<T> =>
78
private readonly struct DivRemOperator<T> : IBinaryInputBinaryOutput<T> where T :
IBinaryInteger
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.HammingDistance.cs (1)
20
public static long HammingBitDistance<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) where T :
IBinaryInteger
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (2)
25
where T :
IBinaryInteger
<T> =>
29
internal readonly unsafe struct LeadingZeroCountOperator<T> : IUnaryOperator<T, T> where T :
IBinaryInteger
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (3)
17
public static long PopCount<T>(ReadOnlySpan<T> x) where T :
IBinaryInteger
<T>
39
where T :
IBinaryInteger
<T> =>
43
private readonly unsafe struct PopCountOperator<T> : IUnaryOperator<T, T> where T :
IBinaryInteger
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.Rotate.cs (4)
22
where T :
IBinaryInteger
<T> =>
37
where T :
IBinaryInteger
<T> =>
41
private readonly unsafe struct RotateLeftOperator<T>(int amount) : IStatefulUnaryOperator<T> where T :
IBinaryInteger
<T>
54
private readonly unsafe struct RotateRightOperator<T>(int amount) : IStatefulUnaryOperator<T> where T :
IBinaryInteger
<T>
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (2)
24
where T :
IBinaryInteger
<T> =>
28
private 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)" />
294
static bool
IBinaryInteger
<byte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value)
326
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
327
static bool
IBinaryInteger
<byte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value)
359
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
360
int
IBinaryInteger
<byte>.GetShortestBitLength() => (sizeof(byte) * 8) - LeadingZeroCount(m_value);
362
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
363
int
IBinaryInteger
<byte>.GetByteCount() => sizeof(byte);
365
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
366
bool
IBinaryInteger
<byte>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
382
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
383
bool
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)" />
1230
static char
IBinaryInteger
<char>.LeadingZeroCount(char value) => (char)(BitOperations.LeadingZeroCount(value) - 16);
1232
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.Log10(TSelf)" />
1233
static char
IBinaryInteger
<char>.Log10(char value) => (char)uint.Log10(value);
1235
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.PopCount(TSelf)" />
1236
static char
IBinaryInteger
<char>.PopCount(char value) => (char)BitOperations.PopCount(value);
1238
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.RotateLeft(TSelf, int)" />
1239
static char
IBinaryInteger
<char>.RotateLeft(char value, int rotateAmount) => (char)((value << (rotateAmount & 15)) | (value >> ((16 - rotateAmount) & 15)));
1241
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.RotateRight(TSelf, int)" />
1242
static char
IBinaryInteger
<char>.RotateRight(char value, int rotateAmount) => (char)((value >> (rotateAmount & 15)) | (value << ((16 - rotateAmount) & 15)));
1244
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TrailingZeroCount(TSelf)" />
1245
static char
IBinaryInteger
<char>.TrailingZeroCount(char value) => (char)(BitOperations.TrailingZeroCount(value << 16) - 16);
1247
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
1248
static bool
IBinaryInteger
<char>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value)
1288
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
1289
static bool
IBinaryInteger
<char>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value)
1329
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
1330
int
IBinaryInteger
<char>.GetShortestBitLength() => (sizeof(char) * 8) - ushort.LeadingZeroCount(m_value);
1332
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
1333
int
IBinaryInteger
<char>.GetByteCount() => sizeof(char);
1335
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
1336
bool
IBinaryInteger
<char>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
1348
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
1349
bool
IBinaryInteger
<char>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1117
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
1121
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (2)
659
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
664
where TInteger :
IBinaryInteger
<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (2)
1350
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
1354
where 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)" />
756
static bool
IBinaryInteger
<Int128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value)
828
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
829
static bool
IBinaryInteger
<Int128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value)
906
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
907
int
IBinaryInteger
<Int128>.GetShortestBitLength()
921
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
922
int
IBinaryInteger
<Int128>.GetByteCount() => Size;
924
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
925
bool
IBinaryInteger
<Int128>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
937
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
938
bool
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)" />
304
static bool
IBinaryInteger
<short>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value)
369
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
370
static bool
IBinaryInteger
<short>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value)
435
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
436
int
IBinaryInteger
<short>.GetShortestBitLength()
450
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
451
int
IBinaryInteger
<short>.GetByteCount() => sizeof(short);
453
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
454
bool
IBinaryInteger
<short>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
466
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
467
bool
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)" />
325
static bool
IBinaryInteger
<int>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value)
397
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
398
static bool
IBinaryInteger
<int>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value)
475
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
476
int
IBinaryInteger
<int>.GetShortestBitLength()
490
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
491
int
IBinaryInteger
<int>.GetByteCount() => sizeof(int);
493
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
494
bool
IBinaryInteger
<int>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
506
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
507
bool
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)" />
322
static bool
IBinaryInteger
<long>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value)
394
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
395
static bool
IBinaryInteger
<long>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value)
472
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
473
int
IBinaryInteger
<long>.GetShortestBitLength()
487
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
488
int
IBinaryInteger
<long>.GetByteCount() => sizeof(long);
490
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
491
bool
IBinaryInteger
<long>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
503
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
504
bool
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)" />
355
static bool
IBinaryInteger
<nint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value)
427
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
428
static bool
IBinaryInteger
<nint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value)
505
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
506
int
IBinaryInteger
<nint>.GetShortestBitLength()
520
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
521
int
IBinaryInteger
<nint>.GetByteCount() => sizeof(nint_t);
523
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
524
bool
IBinaryInteger
<nint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
536
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
537
bool
IBinaryInteger
<nint>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.MinMax.cs (6)
200
private interface IMinMaxCalc<T> where T : struct,
IBinaryInteger
<T>
208
private readonly struct MinCalc<T> : IMinMaxCalc<T> where T : struct,
IBinaryInteger
<T>
216
private readonly struct MaxCalc<T> : IMinMaxCalc<T> where T : struct,
IBinaryInteger
<T>
225
where TInner : struct,
IBinaryInteger
<TInner>
230
where T : struct,
IBinaryInteger
<T>
313
where T : struct,
IBinaryInteger
<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (87)
15
where TValue : unmanaged,
IBinaryInteger
<TValue>
40
where TSignificand :
IBinaryInteger
<TSignificand>
63
where TValue : unmanaged,
IBinaryInteger
<TValue>
112
where TValue : unmanaged,
IBinaryInteger
<TValue>
244
where TValue : unmanaged,
IBinaryInteger
<TValue>
318
where TValue : unmanaged,
IBinaryInteger
<TValue>
327
where TValue : unmanaged,
IBinaryInteger
<TValue>
336
where TValue : unmanaged,
IBinaryInteger
<TValue>
345
where TValue : unmanaged,
IBinaryInteger
<TValue>
353
where TValue : unmanaged,
IBinaryInteger
<TValue>
477
where TValue : unmanaged,
IBinaryInteger
<TValue>
525
where TValue : unmanaged,
IBinaryInteger
<TValue>
580
where TValue : unmanaged,
IBinaryInteger
<TValue>
628
where TValue : unmanaged,
IBinaryInteger
<TValue>
648
where TValue : unmanaged,
IBinaryInteger
<TValue>
731
where TValue : unmanaged,
IBinaryInteger
<TValue>
768
where TValue : unmanaged,
IBinaryInteger
<TValue>
840
where TValue : unmanaged,
IBinaryInteger
<TValue>
870
where TValue : unmanaged,
IBinaryInteger
<TValue>
888
where TValue : unmanaged,
IBinaryInteger
<TValue>
1104
where TValue : unmanaged,
IBinaryInteger
<TValue>
1133
where TValue : unmanaged,
IBinaryInteger
<TValue>
1210
where TValue : unmanaged,
IBinaryInteger
<TValue>
1264
where TValue : unmanaged,
IBinaryInteger
<TValue>
1472
where TValue : unmanaged,
IBinaryInteger
<TValue>
1628
where TValue : unmanaged,
IBinaryInteger
<TValue>, IMinMaxValue<TValue>
1737
where TValue : unmanaged,
IBinaryInteger
<TValue>, IMinMaxValue<TValue>
1854
where TValue : unmanaged,
IBinaryInteger
<TValue>, IMinMaxValue<TValue>
1930
where TValue : unmanaged,
IBinaryInteger
<TValue>
2028
where TValue : unmanaged,
IBinaryInteger
<TValue>
2053
where TValue : unmanaged,
IBinaryInteger
<TValue>
2150
where TValue : unmanaged,
IBinaryInteger
<TValue>
2249
where TValue : unmanaged,
IBinaryInteger
<TValue>
2278
where TValue : unmanaged,
IBinaryInteger
<TValue>
2306
where TValue : unmanaged,
IBinaryInteger
<TValue>
2391
where TValue : unmanaged,
IBinaryInteger
<TValue>
2407
where TValue : unmanaged,
IBinaryInteger
<TValue>
2429
where TValue : unmanaged,
IBinaryInteger
<TValue>
2484
where TValue : unmanaged,
IBinaryInteger
<TValue>
2507
where TValue : unmanaged,
IBinaryInteger
<TValue>
2526
where TValue : unmanaged,
IBinaryInteger
<TValue>
2553
where TValue : unmanaged,
IBinaryInteger
<TValue>
2571
where TValue : unmanaged,
IBinaryInteger
<TValue>
2587
where TValue : unmanaged,
IBinaryInteger
<TValue>
2598
where TValue : unmanaged,
IBinaryInteger
<TValue>
2620
where TValue : unmanaged,
IBinaryInteger
<TValue>
2641
where TValue : unmanaged,
IBinaryInteger
<TValue>
2669
where TValue : unmanaged,
IBinaryInteger
<TValue>
2703
where TValue : unmanaged,
IBinaryInteger
<TValue>
2748
where TValue : unmanaged,
IBinaryInteger
<TValue>
2788
where TValue : unmanaged,
IBinaryInteger
<TValue>
2896
where TValue : unmanaged,
IBinaryInteger
<TValue>
2977
where TValue : unmanaged,
IBinaryInteger
<TValue>
3015
where TValue : unmanaged,
IBinaryInteger
<TValue>
3027
where TValue : unmanaged,
IBinaryInteger
<TValue>
3039
where TValue : unmanaged,
IBinaryInteger
<TValue>
3089
where TValue : unmanaged,
IBinaryInteger
<TValue>
3096
where TValue : unmanaged,
IBinaryInteger
<TValue>
3103
where TValue : unmanaged,
IBinaryInteger
<TValue>
3110
where TValue : unmanaged,
IBinaryInteger
<TValue>
3129
where TValue : unmanaged,
IBinaryInteger
<TValue>
3170
where TValue : unmanaged,
IBinaryInteger
<TValue>
3194
where TValue : unmanaged,
IBinaryInteger
<TValue>
3218
where TValue : unmanaged,
IBinaryInteger
<TValue>
3238
where TValue : unmanaged,
IBinaryInteger
<TValue>
3258
where TValue : unmanaged,
IBinaryInteger
<TValue>
3278
where TValue : unmanaged,
IBinaryInteger
<TValue>
3302
where TValue : unmanaged,
IBinaryInteger
<TValue>
3324
where TValue : unmanaged,
IBinaryInteger
<TValue>
3346
where TValue : unmanaged,
IBinaryInteger
<TValue>
3353
where TValue : unmanaged,
IBinaryInteger
<TValue>
3360
where TValue : unmanaged,
IBinaryInteger
<TValue>
3377
where TValue : unmanaged,
IBinaryInteger
<TValue>
3394
where TValue : unmanaged,
IBinaryInteger
<TValue>
3403
where TValue : unmanaged,
IBinaryInteger
<TValue>
3443
where TValue : unmanaged,
IBinaryInteger
<TValue>
3511
where TValue : unmanaged,
IBinaryInteger
<TValue>
3512
where TInteger :
IBinaryInteger
<TInteger>, IMinMaxValue<TInteger>
3602
where TValue : unmanaged,
IBinaryInteger
<TValue>
3603
where TInteger :
IBinaryInteger
<TInteger>
3630
where TValue : unmanaged,
IBinaryInteger
<TValue>
3682
where TSourceValue : unmanaged,
IBinaryInteger
<TSourceValue>
3684
where TTargetValue : unmanaged,
IBinaryInteger
<TTargetValue>
3716
where TValue : unmanaged,
IBinaryInteger
<TValue>
3793
where TValue : unmanaged,
IBinaryInteger
<TValue>
3882
where TValue : unmanaged,
IBinaryInteger
<TValue>
3925
where TValue : unmanaged,
IBinaryInteger
<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Conversions.cs (4)
49
where TValue : unmanaged,
IBinaryInteger
<TValue>
81
where TValue : unmanaged,
IBinaryInteger
<TValue>
97
where TValue : unmanaged,
IBinaryInteger
<TValue>
178
where TValue : unmanaged,
IBinaryInteger
<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.Transcendental.cs (44)
26
where TValue : unmanaged,
IBinaryInteger
<TValue>
60
where TValue : unmanaged,
IBinaryInteger
<TValue>
94
where TValue : unmanaged,
IBinaryInteger
<TValue>
128
where TValue : unmanaged,
IBinaryInteger
<TValue>
164
where TValue : unmanaged,
IBinaryInteger
<TValue>
200
where TValue : unmanaged,
IBinaryInteger
<TValue>
254
where TValue : unmanaged,
IBinaryInteger
<TValue>
281
where TValue : unmanaged,
IBinaryInteger
<TValue>
322
where TValue : unmanaged,
IBinaryInteger
<TValue>
362
where TValue : unmanaged,
IBinaryInteger
<TValue>
402
where TValue : unmanaged,
IBinaryInteger
<TValue>
442
where TValue : unmanaged,
IBinaryInteger
<TValue>
450
where TValue : unmanaged,
IBinaryInteger
<TValue>
458
where TValue : unmanaged,
IBinaryInteger
<TValue>
473
where TValue : unmanaged,
IBinaryInteger
<TValue>
550
where TValue : unmanaged,
IBinaryInteger
<TValue>
595
where TValue : unmanaged,
IBinaryInteger
<TValue>
629
where TValue : unmanaged,
IBinaryInteger
<TValue>
778
where TValue : unmanaged,
IBinaryInteger
<TValue>
813
where TValue : unmanaged,
IBinaryInteger
<TValue>
864
where TValue : unmanaged,
IBinaryInteger
<TValue>
965
where TValue : unmanaged,
IBinaryInteger
<TValue>
977
where TValue : unmanaged,
IBinaryInteger
<TValue>
1011
where TValue : unmanaged,
IBinaryInteger
<TValue>
1045
where TValue : unmanaged,
IBinaryInteger
<TValue>
1079
where TValue : unmanaged,
IBinaryInteger
<TValue>
1119
where TValue : unmanaged,
IBinaryInteger
<TValue>
1162
where TValue : unmanaged,
IBinaryInteger
<TValue>
1203
where TValue : unmanaged,
IBinaryInteger
<TValue>
1248
where TValue : unmanaged,
IBinaryInteger
<TValue>
1313
where TValue : unmanaged,
IBinaryInteger
<TValue>
1347
where TValue : unmanaged,
IBinaryInteger
<TValue>
1381
where TValue : unmanaged,
IBinaryInteger
<TValue>
1424
where TValue : unmanaged,
IBinaryInteger
<TValue>
1464
where TValue : unmanaged,
IBinaryInteger
<TValue>
1508
where TValue : unmanaged,
IBinaryInteger
<TValue>
1551
where TValue : unmanaged,
IBinaryInteger
<TValue>
1598
where TValue : unmanaged,
IBinaryInteger
<TValue>
1665
where TValue : unmanaged,
IBinaryInteger
<TValue>
1699
where TValue : unmanaged,
IBinaryInteger
<TValue>
1733
where TValue : unmanaged,
IBinaryInteger
<TValue>
1767
where TValue : unmanaged,
IBinaryInteger
<TValue>
1801
where TValue : unmanaged,
IBinaryInteger
<TValue>
1842
where TValue : unmanaged,
IBinaryInteger
<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (4)
343
where TValue : unmanaged,
IBinaryInteger
<TValue>
353
where TValue : unmanaged,
IBinaryInteger
<TValue>
418
where TValue : unmanaged,
IBinaryInteger
<TValue>
581
where TValue : unmanaged,
IBinaryInteger
<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (4)
137
where TValue : unmanaged,
IBinaryInteger
<TValue>
829
where TValue : unmanaged,
IBinaryInteger
<TValue>
996
where TValue : unmanaged,
IBinaryInteger
<TValue>
1771
where TValue : unmanaged,
IBinaryInteger
<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (1)
207
where TUInt : unmanaged,
IBinaryInteger
<TUInt>, IUnsignedNumber<TUInt>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (3)
515
where TInteger : unmanaged,
IBinaryInteger
<TInteger>
532
where TInteger : unmanaged,
IBinaryInteger
<TInteger>, ISignedNumber<TInteger>
600
where TInteger : unmanaged,
IBinaryInteger
<TInteger>, IUnsignedNumber<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (2)
821
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
825
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (2)
832
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
836
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (2)
825
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
829
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
11
where TSelf :
IBinaryInteger
<TSelf>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (2)
24
where TInteger :
IBinaryInteger
<TInteger>
34
where TInteger :
IBinaryInteger
<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
94
where TInteger : struct,
IBinaryInteger
<TInteger>, ISignedNumber<TInteger>
326
where TValue : unmanaged,
IBinaryInteger
<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (5)
195
public T NextInteger<T>() where T :
IBinaryInteger
<T>, IMinMaxValue<T>
255
public T NextInteger<T>(T maxValue) where T :
IBinaryInteger
<T>
275
public T NextInteger<T>(T minValue, T maxValue) where T :
IBinaryInteger
<T>
291
private T NextBinaryIntegerInRange<T>(T maxExclusive) where T :
IBinaryInteger
<T>
378
private 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)
984
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
988
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
3416
where TIndex :
IBinaryInteger
<TIndex>
3440
where TIndex :
IBinaryInteger
<TIndex>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
3459
where TIndex :
IBinaryInteger
<TIndex>
3483
where TIndex :
IBinaryInteger
<TIndex>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
3486
where TIndex :
IBinaryInteger
<TIndex>
3510
where TIndex :
IBinaryInteger
<TIndex>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
3600
where TIndex :
IBinaryInteger
<TIndex>
3624
where 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)" />
307
static bool
IBinaryInteger
<sbyte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value)
359
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
360
static bool
IBinaryInteger
<sbyte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value)
412
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
413
int
IBinaryInteger
<sbyte>.GetShortestBitLength()
427
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
428
int
IBinaryInteger
<sbyte>.GetByteCount() => sizeof(sbyte);
430
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
431
bool
IBinaryInteger
<sbyte>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
444
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
445
bool
IBinaryInteger
<sbyte>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (2)
652
where TInteger :
IBinaryInteger
<TInteger> => TInteger.CreateSaturating(value);
657
where TInteger :
IBinaryInteger
<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (5)
159
where TFrom : unmanaged,
IBinaryInteger
<TFrom>
160
where TTo : unmanaged,
IBinaryInteger
<TTo>
194
where T : unmanaged,
IBinaryInteger
<T>
208
where TFrom : unmanaged,
IBinaryInteger
<TFrom>
209
where TTo : unmanaged,
IBinaryInteger
<TTo>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Trimming.cs (1)
41
where 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)" />
1104
static bool
IBinaryInteger
<UInt128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value)
1151
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
1152
static bool
IBinaryInteger
<UInt128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value)
1202
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
1203
int
IBinaryInteger
<UInt128>.GetShortestBitLength()
1208
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
1209
int
IBinaryInteger
<UInt128>.GetByteCount() => Size;
1211
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
1212
bool
IBinaryInteger
<UInt128>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
1224
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
1225
bool
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)" />
291
static bool
IBinaryInteger
<ushort>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value)
331
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
332
static bool
IBinaryInteger
<ushort>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value)
372
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
373
int
IBinaryInteger
<ushort>.GetShortestBitLength() => (sizeof(ushort) * 8) - LeadingZeroCount(m_value);
375
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
376
int
IBinaryInteger
<ushort>.GetByteCount() => sizeof(ushort);
378
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
379
bool
IBinaryInteger
<ushort>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
391
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
392
bool
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)" />
338
static bool
IBinaryInteger
<uint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value)
385
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
386
static bool
IBinaryInteger
<uint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value)
436
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
437
int
IBinaryInteger
<uint>.GetShortestBitLength() => (sizeof(uint) * 8) - BitOperations.LeadingZeroCount(m_value);
439
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
440
int
IBinaryInteger
<uint>.GetByteCount() => sizeof(uint);
442
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
443
bool
IBinaryInteger
<uint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
455
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
456
bool
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)" />
345
static bool
IBinaryInteger
<ulong>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value)
392
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
393
static bool
IBinaryInteger
<ulong>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value)
443
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
444
int
IBinaryInteger
<ulong>.GetShortestBitLength() => (sizeof(ulong) * 8) - BitOperations.LeadingZeroCount(m_value);
446
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
447
int
IBinaryInteger
<ulong>.GetByteCount() => sizeof(ulong);
449
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
450
bool
IBinaryInteger
<ulong>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
462
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
463
bool
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)" />
350
static bool
IBinaryInteger
<nuint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value)
397
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
398
static bool
IBinaryInteger
<nuint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value)
448
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
449
int
IBinaryInteger
<nuint>.GetShortestBitLength() => (sizeof(nuint_t) * 8) - BitOperations.LeadingZeroCount(_value);
451
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
452
int
IBinaryInteger
<nuint>.GetByteCount() => sizeof(nuint_t);
454
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
455
bool
IBinaryInteger
<nuint>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
467
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
468
bool
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)
24
where TChar : unmanaged,
IBinaryInteger
<TChar>
35
where TChar : unmanaged,
IBinaryInteger
<TChar>
101
where TChar : unmanaged,
IBinaryInteger
<TChar>
128
where TChar : unmanaged,
IBinaryInteger
<TChar>
206
where TChar : unmanaged,
IBinaryInteger
<TChar>
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (2)
99
where TChar : unmanaged,
IBinaryInteger
<TChar>
314
where TChar : unmanaged,
IBinaryInteger
<TChar>
System.Private.Windows.Core.TestUtilities (7)
ComparisonHelpers.cs (1)
12
where T : struct,
IBinaryInteger
<T>
XUnit\IntegerDataAttribute.cs (1)
13
where TNumber : struct,
IBinaryInteger
<TNumber>, IMinMaxValue<TNumber>
XUnit\PositiveNumberDataAttribute.cs (1)
13
: CommonMemberDataAttribute where TNumber : struct,
IBinaryInteger
<TNumber>, IMinMaxValue<TNumber>
XUnit\TestData.cs (4)
26
where T : struct,
IBinaryInteger
<T>, IMinMaxValue<T>
33
where T : struct,
IBinaryInteger
<T>, IMinMaxValue<T>
55
where T : struct,
IBinaryInteger
<T>, IMinMaxValue<T>
78
where 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)" />
3336
static 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)" />
3774
static bool
IBinaryInteger
<BigInteger>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value)
3780
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
3781
static bool
IBinaryInteger
<BigInteger>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value)
3787
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetShortestBitLength()" />
3788
int
IBinaryInteger
<BigInteger>.GetShortestBitLength()
3824
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.GetByteCount()" />
3825
int
IBinaryInteger
<BigInteger>.GetByteCount() => GetGenericMathByteCount();
3827
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteBigEndian(Span{byte}, out int)" />
3828
bool
IBinaryInteger
<BigInteger>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
3905
/// <inheritdoc cref="
IBinaryInteger
{TSelf}.TryWriteLittleEndian(Span{byte}, out int)" />
3906
bool
IBinaryInteger
<BigInteger>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\MintermClassifier.cs (1)
80
static 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)
916
where TInt : struct,
IBinaryInteger
<TInt>, IMinMaxValue<TInt>
System\Threading\Tasks\Parallel.ForEachAsync.cs (4)
21
where T : notnull,
IBinaryInteger
<T>
39
where T : notnull,
IBinaryInteger
<T>
57
where T : notnull,
IBinaryInteger
<T>
78
where T : notnull,
IBinaryInteger
<T>
System\Threading\Tasks\ParallelLoopState.cs (3)
184
internal static void Break<TInt>(TInt iteration, ParallelLoopStateFlags<TInt> pflags) where TInt : struct,
IBinaryInteger
<TInt>, IMinMaxValue<TInt>
224
internal sealed class ParallelLoopState<TInt> : ParallelLoopState where TInt : struct,
IBinaryInteger
<TInt>, IMinMaxValue<TInt>
350
where TInt : struct,
IBinaryInteger
<TInt>, IMinMaxValue<TInt>
System\Threading\Tasks\ParallelRangeManager.cs (1)
176
internal 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)
1414
static object ExecuteBinaryOperator<T>(T leftValue, T rightValue, CodeBinaryOperatorType op) where T :
IBinaryInteger
<T>