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