33 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 (16)
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 (1)
665nuint 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 (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (1)
665nuint digit = (valHi1 >= divHi) ? nuint.MaxValue : DivRem(valHi1, valHi0, divHi, out _);
System\Numerics\BigInteger.cs (11)
444val[wholeLimbCount] = nuint.MaxValue; 585length = value.LastIndexOfAnyExcept(nuint.MaxValue) + 1; 617if (value[0] == nuint.MaxValue) 1597Debug.Assert(highLimb <= nuint.MaxValue - 1); 1753highLimb = (_sign < 0) ? nuint.MaxValue : 0; 1762highLimb = nuint.MaxValue; 2907int leastSignificant = zd.IndexOfAnyExcept(nuint.MaxValue); 3864BinaryPrimitives.WriteUIntPtrBigEndian(dest, nuint.MaxValue); 3967BinaryPrimitives.WriteUIntPtrLittleEndian(dest, nuint.MaxValue); 4948nuint 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 (2)
442quotient.Fill(nuint.MaxValue); 464quotient.Slice(0, qi).Fill(nuint.MaxValue);
System\Numerics\BigIntegerCalculator.SquMul.cs (1)
597Debug.Assert(pm2[^1] != nuint.MaxValue);