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