44 references to Int128
System.Private.CoreLib (40)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
77return new Int128(
src\libraries\System.Private.CoreLib\src\System\Int128.cs (36)
474Int128 result = new Int128(value.High, value.Low64); 551Int128 result = new Int128((bits << 12) >> 1 | 0x8000_0000_0000_0000, 0x0000_0000_0000_0000); 585public static implicit operator Int128(byte value) => new Int128(0, value); 590public static implicit operator Int128(char value) => new Int128(0, value); 598return new Int128((ulong)(lower >> 63), (ulong)lower); 607return new Int128((ulong)(lower >> 63), (ulong)lower); 616return new Int128((ulong)(lower >> 63), (ulong)lower); 625return new Int128((ulong)(lower >> 63), (ulong)lower); 635return new Int128((ulong)(lower >> 63), (ulong)lower); 642public static implicit operator Int128(ushort value) => new Int128(0, value); 648public static implicit operator Int128(uint value) => new Int128(0, value); 654public static implicit operator Int128(ulong value) => new Int128(0, value); 660public static implicit operator Int128(nuint value) => new Int128(0, value); 676return new Int128(upper, lower); 967static Int128 IBinaryNumber<Int128>.AllBitsSet => new Int128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 992public static Int128 operator &(Int128 left, Int128 right) => new Int128(left._upper & right._upper, left._lower & right._lower); 995public static Int128 operator |(Int128 left, Int128 right) => new Int128(left._upper | right._upper, left._lower | right._lower); 998public static Int128 operator ^(Int128 left, Int128 right) => new Int128(left._upper ^ right._upper, left._lower ^ right._lower); 1001public static Int128 operator ~(Int128 value) => new Int128(~value._upper, ~value._lower); 1089return new Int128( 1123public static Int128 MinValue => new Int128(0x8000_0000_0000_0000, 0); 1126public static Int128 MaxValue => new Int128(0x7FFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 1271public static Int128 One => new Int128(0, 1); 1804decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 1805(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value; 1877decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 1878(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value; 1945return new Int128(upper, 0); 1955return new Int128(upper, lower); 1980return new Int128(upper, lower); 1990return new Int128(upper, lower); 2013return new Int128(0, lower); 2023return new Int128(upper, lower); 2036public static Int128 NegativeOne => new Int128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 2062return new Int128(upper, lower); 2133static Int128 IBinaryIntegerParseAndFormatInfo<Int128>.MaxValueDiv10 => new Int128(0x0CCC_CCCC_CCCC_CCCC, 0xCCCC_CCCC_CCCC_CCCC);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
284return new Int128((ulong)high, (ulong)low);
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
348public static explicit operator Int128(UInt128 value) => new Int128(value._upper, value._lower); 361return new Int128(value._upper, value._lower);
System.Runtime.Numerics (4)
System\Numerics\BigInteger.cs (4)
4723decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 4724(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value; 4928decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 4929(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value;