44 references to Int128
System.Private.CoreLib (40)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
77return new Int128(
src\runtime\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); 961static Int128 IBinaryNumber<Int128>.AllBitsSet => new Int128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 986public static Int128 operator &(Int128 left, Int128 right) => new Int128(left._upper & right._upper, left._lower & right._lower); 989public static Int128 operator |(Int128 left, Int128 right) => new Int128(left._upper | right._upper, left._lower | right._lower); 992public static Int128 operator ^(Int128 left, Int128 right) => new Int128(left._upper ^ right._upper, left._lower ^ right._lower); 995public static Int128 operator ~(Int128 value) => new Int128(~value._upper, ~value._lower); 1083return new Int128( 1117public static Int128 MinValue => new Int128(0x8000_0000_0000_0000, 0); 1120public static Int128 MaxValue => new Int128(0x7FFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 1270public static Int128 One => new Int128(0, 1); 1803decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 1804(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value; 1876decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 1877(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value; 1944return new Int128(upper, 0); 1954return new Int128(upper, lower); 1979return new Int128(upper, lower); 1989return new Int128(upper, lower); 2012return new Int128(0, lower); 2022return new Int128(upper, lower); 2035public static Int128 NegativeOne => new Int128(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF); 2061return new Int128(upper, lower); 2132static Int128 IBinaryIntegerParseAndFormatInfo<Int128>.MaxValueDiv10 => new Int128(0x0CCC_CCCC_CCCC_CCCC, 0xCCCC_CCCC_CCCC_CCCC);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
298return new Int128((ulong)high, (ulong)low);
src\runtime\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)
4609decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 4610(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value; 4820decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 4821(value <= new Int128(0xFFFF_FFFF_0000_0000, 0x0000_0000_0000_0001)) ? decimal.MinValue : (decimal)value;