60 references to MaxValue
System.Linq (1)
System\Linq\Sequence.cs (1)
93if (typeof(T) == typeof(nuint) && (range = TryUseRange<UInt128>(start, endInclusive, step, nuint.MaxValue)) is not null) return range;
System.Private.CoreLib (22)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1828nuint actualResult = (value >= nuint.MaxValue) ? nuint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Dragon4.cs (1)
286if ((hiBlock < 8) || (hiBlock > (nuint.MaxValue / 10)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (2)
1932nuint actualResult = ((float)value >= nuint.MaxValue) ? nuint.MaxValue :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (7)
840if (repeatedLimb == nuint.MaxValue) 947if (repeatedLimb == nuint.MaxValue) 1337nuint quotientScale = nuint.MaxValue / TDivisor.Value; 1338nuint remainderScale = (nuint.MaxValue % TDivisor.Value) + 1; 1371nuint quotientScale = nuint.MaxValue / TDivisor.Value; 1372nuint remainderScale = (nuint.MaxValue % TDivisor.Value) + 1; 1702nuint digit = (valHi1 >= divHi) ? nuint.MaxValue : DivRem(valHi1, valHi0, divHi, out _);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.cs (2)
90return ((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)
81private static nuint Uninitialized => nuint.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Scalar.cs (2)
81return (T)(object)nuint.MaxValue; 414result = nuint.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
761Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char)); 991Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (2)
41Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char)); 205Debug.Assert(bufferLength <= nuint.MaxValue / sizeof(char));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
565static nuint IMinMaxValue<nuint>.MaxValue => MaxValue;
System.Runtime.Numerics (37)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (7)
840if (repeatedLimb == nuint.MaxValue) 947if (repeatedLimb == nuint.MaxValue) 1337nuint quotientScale = nuint.MaxValue / TDivisor.Value; 1338nuint remainderScale = (nuint.MaxValue % TDivisor.Value) + 1; 1371nuint quotientScale = nuint.MaxValue / TDivisor.Value; 1372nuint remainderScale = (nuint.MaxValue % TDivisor.Value) + 1; 1702nuint digit = (valHi1 >= divHi) ? nuint.MaxValue : DivRem(valHi1, valHi0, divHi, out _);
System\Numerics\BigInteger.cs (13)
448val[wholeLimbCount] = nuint.MaxValue; 589length = value.LastIndexOfAnyExcept(nuint.MaxValue) + 1; 621if (value[0] == nuint.MaxValue) 1277bits[^1] &= nuint.MaxValue >> (bitsPerLimb - partialBits); 2040Debug.Assert(highLimb <= nuint.MaxValue - 1); 2196highLimb = (_sign < 0) ? nuint.MaxValue : 0; 2205highLimb = nuint.MaxValue; 3449int leastSignificant = zd.IndexOfAnyExcept(nuint.MaxValue); 3783=> left.Length >= 16 && (right[0] == 0 || right[0] == nuint.MaxValue); 4466BinaryPrimitives.WriteUIntPtrBigEndian(dest, nuint.MaxValue); 4569BinaryPrimitives.WriteUIntPtrLittleEndian(dest, nuint.MaxValue); 5550nuint actualResult = (value >= nuint.MaxValue) ? nuint.MaxValue :
System\Numerics\BigIntegerCalculator.Bitwise.cs (1)
95return (uint)i < (uint)len ? tc : nuint.MaxValue;
System\Numerics\BigIntegerCalculator.DivRem.cs (14)
98Debug.Assert(right[0] == 0 || right[0] == nuint.MaxValue); 104if (right[0] == nuint.MaxValue 137Debug.Assert(right[0] == 0 || right[0] == nuint.MaxValue); 141if (right[0] == nuint.MaxValue 178Debug.Assert(right[0] == 0 || right[0] == nuint.MaxValue); 183if (right[0] == nuint.MaxValue 225&& right[0] == nuint.MaxValue 263|| right[0] != nuint.MaxValue 264|| right[1] != nuint.MaxValue 265|| right.ContainsAnyExcept(nuint.MaxValue)) 384allMaxValue &= digit == nuint.MaxValue; 401allMaxValue &= digit == nuint.MaxValue; 690quotient.Fill(nuint.MaxValue); 712quotient.Slice(0, qi).Fill(nuint.MaxValue);
System\Numerics\BigIntegerCalculator.SquMul.cs (2)
33&& (value.Length >= 8 || value[0] == 1 || value[0] == nuint.MaxValue) 670Debug.Assert(pm2[^1] != nuint.MaxValue);