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