60 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 (22)
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 (7)
840
if (repeatedLimb == nuint.
MaxValue
)
947
if (repeatedLimb == nuint.
MaxValue
)
1337
nuint quotientScale = nuint.
MaxValue
/ TDivisor.Value;
1338
nuint remainderScale = (nuint.
MaxValue
% TDivisor.Value) + 1;
1371
nuint quotientScale = nuint.
MaxValue
/ TDivisor.Value;
1372
nuint remainderScale = (nuint.
MaxValue
% TDivisor.Value) + 1;
1702
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 (37)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (7)
840
if (repeatedLimb == nuint.
MaxValue
)
947
if (repeatedLimb == nuint.
MaxValue
)
1337
nuint quotientScale = nuint.
MaxValue
/ TDivisor.Value;
1338
nuint remainderScale = (nuint.
MaxValue
% TDivisor.Value) + 1;
1371
nuint quotientScale = nuint.
MaxValue
/ TDivisor.Value;
1372
nuint remainderScale = (nuint.
MaxValue
% TDivisor.Value) + 1;
1702
nuint digit = (valHi1 >= divHi) ? nuint.
MaxValue
: DivRem(valHi1, valHi0, divHi, out _);
System\Numerics\BigInteger.cs (13)
448
val[wholeLimbCount] = nuint.
MaxValue
;
589
length = value.LastIndexOfAnyExcept(nuint.
MaxValue
) + 1;
621
if (value[0] == nuint.
MaxValue
)
1277
bits[^1] &= nuint.
MaxValue
>> (bitsPerLimb - partialBits);
2040
Debug.Assert(highLimb <= nuint.
MaxValue
- 1);
2196
highLimb = (_sign < 0) ? nuint.
MaxValue
: 0;
2205
highLimb = nuint.
MaxValue
;
3449
int leastSignificant = zd.IndexOfAnyExcept(nuint.
MaxValue
);
3783
=> left.Length >= 16 && (right[0] == 0 || right[0] == nuint.
MaxValue
);
4466
BinaryPrimitives.WriteUIntPtrBigEndian(dest, nuint.
MaxValue
);
4569
BinaryPrimitives.WriteUIntPtrLittleEndian(dest, nuint.
MaxValue
);
5550
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 (14)
98
Debug.Assert(right[0] == 0 || right[0] == nuint.
MaxValue
);
104
if (right[0] == nuint.
MaxValue
137
Debug.Assert(right[0] == 0 || right[0] == nuint.
MaxValue
);
141
if (right[0] == nuint.
MaxValue
178
Debug.Assert(right[0] == 0 || right[0] == nuint.
MaxValue
);
183
if (right[0] == nuint.
MaxValue
225
&& right[0] == nuint.
MaxValue
263
|| right[0] != nuint.
MaxValue
264
|| right[1] != nuint.
MaxValue
265
|| right.ContainsAnyExcept(nuint.
MaxValue
))
384
allMaxValue &= digit == nuint.
MaxValue
;
401
allMaxValue &= digit == nuint.
MaxValue
;
690
quotient.Fill(nuint.
MaxValue
);
712
quotient.Slice(0, qi).Fill(nuint.
MaxValue
);
System\Numerics\BigIntegerCalculator.SquMul.cs (2)
33
&& (value.Length >= 8 || value[0] == 1 || value[0] == nuint.
MaxValue
)
670
Debug.Assert(pm2[^1] != nuint.
MaxValue
);