69 references to UInt128
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
129
return new
UInt128
(hash.High64, hash.Low64);
214
return new
UInt128
(current.High64, current.Low64);
Microsoft.CodeAnalysis (2)
Hashing\XxHash128.cs (2)
129
return new
UInt128
(hash.High64, hash.Low64);
214
return new
UInt128
(current.High64, current.Low64);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
XxHash128Tests.cs (2)
51
Assert.Equal(new
UInt128
(test.HashHigh, test.HashLow), XxHash128.HashToUInt128(input, test.Seed));
129
Assert.Equal(new
UInt128
(test.HashHigh, test.HashLow), hash.GetCurrentHashAsUInt128());
System.IO.Hashing (2)
System\IO\Hashing\XxHash128.cs (2)
125
return new
UInt128
(hash.High64, hash.Low64);
210
return new
UInt128
(current.High64, current.Low64);
System.Private.CoreLib (53)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
189
return new
UInt128
(
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\FormattingHelpers.CountDigits.Int128.cs (1)
35
value /= new
UInt128
(0x5, 0x6BC7_5E2D_6310_0000); // value /= 1e20
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1389
var significand = new
UInt128
(value._hi32, value._lo64);
1622
result = (actualValue >= new
UInt128
(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? MaxValue : (decimal)actualValue;
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
428
public static explicit operator UInt128(Int128 value) => new
UInt128
(value._upper, value._lower);
441
return new
UInt128
(value._upper, value._lower);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
274
return new
UInt128
(high, low);
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (1)
2447
UInt128 divisor = new
UInt128
(0, 10_000_000_000_000_000_000);
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (45)
502
return new
UInt128
(value.High, value.Low64);
565
UInt128 result = new
UInt128
((bits << 12) >> 1 | 0x8000_0000_0000_0000, 0x0000_0000_0000_0000);
582
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
595
return new
UInt128
(0, (ushort)value);
604
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
617
return new
UInt128
(0, (uint)value);
626
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
639
return new
UInt128
(0, (ulong)value);
648
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
661
return new
UInt128
(0, (nuint)value);
671
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
685
return new
UInt128
(0, (byte)value);
706
public static implicit operator UInt128(byte value) => new
UInt128
(0, value);
711
public static implicit operator UInt128(char value) => new
UInt128
(0, value);
717
public static implicit operator UInt128(ushort value) => new
UInt128
(0, value);
723
public static implicit operator UInt128(uint value) => new
UInt128
(0, value);
729
public static implicit operator UInt128(ulong value) => new
UInt128
(0, value);
735
public static implicit operator UInt128(nuint value) => new
UInt128
(0, value);
751
return new
UInt128
(upper, lower);
764
return new
UInt128
(upper, lower);
977
static UInt128 IBinaryNumber<UInt128>.AllBitsSet => new
UInt128
(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF);
997
public static UInt128 operator &(UInt128 left, UInt128 right) => new
UInt128
(left._upper & right._upper, left._lower & right._lower);
1000
public static UInt128 operator |(UInt128 left, UInt128 right) => new
UInt128
(left._upper | right._upper, left._lower | right._lower);
1003
public static UInt128 operator ^(UInt128 left, UInt128 right) => new
UInt128
(left._upper ^ right._upper, left._lower ^ right._lower);
1006
public static UInt128 operator ~(UInt128 value) => new
UInt128
(~value._upper, ~value._lower);
1080
return new
UInt128
(highRes, X86Base.X64.DivRem(left._lower, remainder, right._lower).Quotient);
1256
return new
UInt128
(
1320
public static UInt128 MinValue => new
UInt128
(0, 0);
1323
public static UInt128 MaxValue => new
UInt128
(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF);
1352
return new
UInt128
(upper, lower);
1386
lower = new
UInt128
(tl._lower, mull._lower);
1437
public static UInt128 One => new
UInt128
(0, 1);
1870
short actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x0000_0000_0000_7FFF)) ? short.MaxValue : (short)value;
1876
int actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x0000_0000_7FFF_FFFF)) ? int.MaxValue : (int)value;
1882
long actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x7FFF_FFFF_FFFF_FFFF)) ? long.MaxValue : (long)value;
1888
Int128 actualResult = (value >= new
UInt128
(0x7FFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? Int128.MaxValue : (Int128)value;
1899
nint actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x7FFF_FFFF_FFFF_FFFF)) ? nint.MaxValue : (nint)value;
1906
sbyte actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x0000_0000_0000_007F)) ? sbyte.MaxValue : (sbyte)value;
2023
return new
UInt128
(upper, 0);
2033
return new
UInt128
(upper, lower);
2059
return new
UInt128
(0, lower);
2069
return new
UInt128
(upper, lower);
2101
return new
UInt128
(upper, lower);
2114
return new
UInt128
(upper, lower);
2168
static UInt128 IBinaryIntegerParseAndFormatInfo<UInt128>.MaxValueDiv10 => new
UInt128
(0x1999_9999_9999_9999, 0x9999_9999_9999_9999);
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (6)
1980
uu = new
UInt128
(
2098
return new
UInt128
(
2239
else if (x <= new
UInt128
(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF))
2323
else if (value <= new
UInt128
(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF))
5036
UInt128 bits = new
UInt128
(upperBits, lowerBits);
5217
UInt128 bits = new
UInt128
(upperBits, lowerBits);
Test.Utilities (2)
src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
129
return new
UInt128
(hash.High64, hash.Low64);
214
return new
UInt128
(current.High64, current.Low64);