33 references to MaxValue
System.Linq (1)
System\Linq\Sequence.cs (1)
93
if (typeof(T) == typeof(nuint) && (range = TryUseRange<UInt128>(start, endInclusive, step, nuint.
MaxValue
)) is not null) return range;
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1828
nuint actualResult = (value >= nuint.
MaxValue
) ? nuint.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (1)
286
if ((hiBlock < 8) || (hiBlock > (nuint.
MaxValue
/ 10)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1932
nuint actualResult = ((float)value >= nuint.
MaxValue
) ? nuint.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (1)
665
nuint digit = (valHi1 >= divHi) ? nuint.
MaxValue
: DivRem(valHi1, valHi0, divHi, out _);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.cs (2)
90
return ((elementSize >= multiplyNoOverflow) || (elementCount >= multiplyNoOverflow)) && (elementSize > 0) && ((nuint.
MaxValue
/ elementSize) < elementCount) ? nuint.
MaxValue
: (elementCount * elementSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
81
private static nuint Uninitialized => nuint.
MaxValue
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
81
return (T)(object)nuint.
MaxValue
;
414
result = nuint.
MaxValue
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
761
Debug.Assert(bufferLength <= nuint.
MaxValue
/ sizeof(char));
991
Debug.Assert(bufferLength <= nuint.
MaxValue
/ sizeof(char));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (2)
41
Debug.Assert(bufferLength <= nuint.
MaxValue
/ sizeof(char));
205
Debug.Assert(bufferLength <= nuint.
MaxValue
/ sizeof(char));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
565
static nuint IMinMaxValue<nuint>.MaxValue =>
MaxValue
;
System.Runtime.Numerics (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (1)
665
nuint digit = (valHi1 >= divHi) ? nuint.
MaxValue
: DivRem(valHi1, valHi0, divHi, out _);
System\Numerics\BigInteger.cs (11)
444
val[wholeLimbCount] = nuint.
MaxValue
;
585
length = value.LastIndexOfAnyExcept(nuint.
MaxValue
) + 1;
617
if (value[0] == nuint.
MaxValue
)
1597
Debug.Assert(highLimb <= nuint.
MaxValue
- 1);
1753
highLimb = (_sign < 0) ? nuint.
MaxValue
: 0;
1762
highLimb = nuint.
MaxValue
;
2907
int leastSignificant = zd.IndexOfAnyExcept(nuint.
MaxValue
);
3864
BinaryPrimitives.WriteUIntPtrBigEndian(dest, nuint.
MaxValue
);
3967
BinaryPrimitives.WriteUIntPtrLittleEndian(dest, nuint.
MaxValue
);
4948
nuint actualResult = (value >= nuint.
MaxValue
) ? nuint.
MaxValue
:
System\Numerics\BigIntegerCalculator.Bitwise.cs (1)
95
return (uint)i < (uint)len ? tc : nuint.
MaxValue
;
System\Numerics\BigIntegerCalculator.DivRem.cs (2)
442
quotient.Fill(nuint.
MaxValue
);
464
quotient.Slice(0, qi).Fill(nuint.
MaxValue
);
System\Numerics\BigIntegerCalculator.SquMul.cs (1)
597
Debug.Assert(pm2[^1] != nuint.
MaxValue
);