358 references to UInt128
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
129
return new
UInt128
(hash.High64, hash.Low64);
214
return new
UInt128
(current.High64, current.Low64);
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Utilities\Hashing\XxHash128.cs (2)
127
return new
UInt128
(hash.High64, hash.Low64);
212
return new
UInt128
(current.High64, current.Low64);
Microsoft.CodeAnalysis (2)
Hashing\XxHash128.cs (2)
129
return new
UInt128
(hash.High64, hash.Low64);
214
return new
UInt128
(current.High64, current.Low64);
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
129
return new
UInt128
(hash.High64, hash.Low64);
214
return new
UInt128
(current.High64, current.Low64);
System.IO.Hashing (2)
System\IO\Hashing\XxHash128.cs (2)
125
return new
UInt128
(hash.High64, hash.Low64);
210
return new
UInt128
(current.High64, current.Low64);
System.Private.CoreLib (340)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
189
return new
UInt128
(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\FormattingHelpers.CountDigits.Int128.cs (1)
35
value /= new
UInt128
(0x5, 0x6BC7_5E2D_6310_0000); // value /= 1e20
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
1749
UInt128 mantissa = new
UInt128
(high, low64);
1823
return new
UInt128
((exponent == DEC_SCALE_MAX) ? 2u : 0u, pow5[exponent]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
422
public static explicit operator UInt128(Int128 value) => new
UInt128
(value._upper, value._lower);
435
return new
UInt128
(value._upper, value._lower);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
285
return new
UInt128
(high, low);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (2)
1356
return new
UInt128
(((ulong)_blocks[3] << 32) + _blocks[2], ((ulong)(_blocks[1]) << 32) + _blocks[0]);
1361
return new
UInt128
((ulong)_blocks[2], ((ulong)_blocks[1] << 32) + _blocks[0]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128.cs (2)
551
return new
UInt128
((ulong)value._sign << 32, 0);
596
return new
UInt128
(currentDigit, lowWord);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Conversions.cs (1)
158
UInt128 fraction = new
UInt128
(value._hi, value._lo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128PiTrig.cs (1)
95
UInt128 significand = new
UInt128
(value._hi, value._lo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Trig.cs (4)
178
UInt128 p = (UInt128)a * b + new
UInt128
(addHi, addLo);
186
UInt128 addend = new
UInt128
(addHi, addLo);
196
UInt128 prod = (UInt128)a * b + new
UInt128
(carryIn, 0);
197
UInt128 addend = new
UInt128
(addHi, addLo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (1)
2837
UInt128 divisor = new
UInt128
(0, 10_000_000_000_000_000_000);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (1)
145
: TryGetFloorAndMidpoint(new
UInt128
(high, low), shift, DoubleIntegerBoundaryLog2, out floor, out midpointComparison, out hasRemainder);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (225)
40
private static UInt128 PositiveInfinityValue => new
UInt128
(upper: 0x7800_0000_0000_0000, lower: 0);
41
private static UInt128 NegativeInfinityValue => new
UInt128
(upper: 0xF800_0000_0000_0000, lower: 0);
44
private static UInt128 ZeroValue => new
UInt128
(0x3040_0000_0000_0000, 0);
45
private static UInt128 NegativeZeroValue => new
UInt128
(0xB040_0000_0000_0000, 0);
47
private static UInt128 OneValue => new
UInt128
(0x3040_0000_0000_0000, 1);
48
private static UInt128 NegativeOneValue => new
UInt128
(0xB040_0000_0000_0000, 1);
50
private static UInt128 EValue => new
UInt128
(0x2FFE_8605_8A4B_F4DE, 0x4E90_6ACC_B26A_BB56); // +2.718281828459045235360287471352662
51
private static UInt128 PiValue => new
UInt128
(0x2FFE_9AE4_7957_96A7, 0xBABE_5564_E6F3_9F8F); // +3.141592653589793238462643383279503
52
private static UInt128 TauValue => new
UInt128
(0x2FFF_35C8_F2AF_2D4F, 0x757C_AAC9_CDE7_3F1E); // +6.283185307179586476925286766559006
53
private static UInt128 QuietNaNValue => new
UInt128
(0xFC00_0000_0000_0000, 0);
54
private static UInt128 NaNPayloadMask => new
UInt128
(0x0000_3FFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF);
221
var current = new
UInt128
(_upper, _lower);
222
var another = new
UInt128
(other._upper, other._lower);
229
var current = new
UInt128
(_upper, _lower);
230
var another = new
UInt128
(other._upper, other._lower);
247
return Number.GetDecimalIeee754HashCode<Decimal128, UInt128>(new
UInt128
(_upper, _lower));
254
public static UInt128 EncodeBinary(Decimal128 x) => new
UInt128
(x._upper, x._lower);
266
public static UInt128 EncodeDecimal(Decimal128 x) => Number.EncodeDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower));
279
return Number.FormatDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower), null, NumberFormatInfo.CurrentInfo);
287
return Number.FormatDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower), format, NumberFormatInfo.CurrentInfo);
295
return Number.FormatDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower), null, NumberFormatInfo.GetInstance(provider));
303
return Number.FormatDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower), format, NumberFormatInfo.GetInstance(provider));
309
return Number.TryFormatDecimalIeee754<Decimal128, UInt128, char>(new
UInt128
(_upper, _lower), format, NumberFormatInfo.GetInstance(provider), destination, out charsWritten);
315
return Number.TryFormatDecimalIeee754<Decimal128, UInt128, byte>(new
UInt128
(_upper, _lower), format, NumberFormatInfo.GetInstance(provider), utf8Destination, out bytesWritten);
333
UInt128 result = Number.AddDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower), OneValue);
342
UInt128 result = Number.SubtractDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower), OneValue);
352
UInt128 result = Number.AddDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
362
UInt128 result = Number.SubtractDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
372
UInt128 result = Number.MultiplyDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
382
UInt128 result = Number.DivideDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
392
UInt128 result = Number.RemainderDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
433
public static explicit operator byte(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, byte>(new
UInt128
(value._upper, value._lower), isChecked: false);
439
public static explicit operator checked byte(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, byte>(new
UInt128
(value._upper, value._lower), isChecked: true);
445
public static explicit operator sbyte(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, sbyte>(new
UInt128
(value._upper, value._lower), isChecked: false);
452
public static explicit operator checked sbyte(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, sbyte>(new
UInt128
(value._upper, value._lower), isChecked: true);
457
public static explicit operator char(Decimal128 value) => (char)Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, ushort>(new
UInt128
(value._upper, value._lower), isChecked: false);
463
public static explicit operator checked char(Decimal128 value) => (char)Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, ushort>(new
UInt128
(value._upper, value._lower), isChecked: true);
468
public static explicit operator short(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, short>(new
UInt128
(value._upper, value._lower), isChecked: false);
474
public static explicit operator checked short(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, short>(new
UInt128
(value._upper, value._lower), isChecked: true);
480
public static explicit operator ushort(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, ushort>(new
UInt128
(value._upper, value._lower), isChecked: false);
487
public static explicit operator checked ushort(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, ushort>(new
UInt128
(value._upper, value._lower), isChecked: true);
492
public static explicit operator int(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, int>(new
UInt128
(value._upper, value._lower), isChecked: false);
498
public static explicit operator checked int(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, int>(new
UInt128
(value._upper, value._lower), isChecked: true);
504
public static explicit operator uint(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, uint>(new
UInt128
(value._upper, value._lower), isChecked: false);
511
public static explicit operator checked uint(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, uint>(new
UInt128
(value._upper, value._lower), isChecked: true);
516
public static explicit operator nint(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, nint>(new
UInt128
(value._upper, value._lower), isChecked: false);
522
public static explicit operator checked nint(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, nint>(new
UInt128
(value._upper, value._lower), isChecked: true);
528
public static explicit operator nuint(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, nuint>(new
UInt128
(value._upper, value._lower), isChecked: false);
535
public static explicit operator checked nuint(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, nuint>(new
UInt128
(value._upper, value._lower), isChecked: true);
540
public static explicit operator long(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, long>(new
UInt128
(value._upper, value._lower), isChecked: false);
546
public static explicit operator checked long(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, long>(new
UInt128
(value._upper, value._lower), isChecked: true);
552
public static explicit operator ulong(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, ulong>(new
UInt128
(value._upper, value._lower), isChecked: false);
559
public static explicit operator checked ulong(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, ulong>(new
UInt128
(value._upper, value._lower), isChecked: true);
564
public static explicit operator Int128(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, Int128>(new
UInt128
(value._upper, value._lower), isChecked: false);
570
public static explicit operator checked Int128(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, Int128>(new
UInt128
(value._upper, value._lower), isChecked: true);
576
public static explicit operator UInt128(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, UInt128>(new
UInt128
(value._upper, value._lower), isChecked: false);
583
public static explicit operator checked UInt128(Decimal128 value) => Number.ConvertDecimalIeee754ToInteger<Decimal128, UInt128, UInt128>(new
UInt128
(value._upper, value._lower), isChecked: true);
588
public static explicit operator Half(Decimal128 value) => Number.ConvertDecimalIeee754ToFloat<Decimal128, UInt128, Half>(new
UInt128
(value._upper, value._lower));
593
public static explicit operator float(Decimal128 value) => Number.ConvertDecimalIeee754ToFloat<Decimal128, UInt128, float>(new
UInt128
(value._upper, value._lower));
598
public static explicit operator double(Decimal128 value) => Number.ConvertDecimalIeee754ToFloat<Decimal128, UInt128, double>(new
UInt128
(value._upper, value._lower));
604
public static explicit operator decimal(Decimal128 value) => Number.ConvertDecimalIeee754ToDecimal<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
681
return Number.EqualsDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
699
return Number.LessThanDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
708
return Number.GreaterThanDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
717
return Number.LessThanOrEqualDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
726
return Number.GreaterThanOrEqualDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower));
795
public static Decimal128 Ceiling(Decimal128 x) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), 0, MidpointRounding.ToPositiveInfinity));
806
public static Decimal128 Floor(Decimal128 x) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), 0, MidpointRounding.ToNegativeInfinity));
809
public static Decimal128 Round(Decimal128 x) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), 0, MidpointRounding.ToEven));
812
public static Decimal128 Round(Decimal128 x, int digits) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), digits, MidpointRounding.ToEven));
815
public static Decimal128 Round(Decimal128 x, MidpointRounding mode) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), 0, mode));
818
public static Decimal128 Round(Decimal128 x, int digits, MidpointRounding mode) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), digits, mode));
821
public static Decimal128 Truncate(Decimal128 x) => new Decimal128(Number.RoundDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), 0, MidpointRounding.ToZero));
829
int exponent = Number.UnpackDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower)).UnbiasedExponent;
850
if (BinaryPrimitives.TryWriteInt32BigEndian(destination, Number.UnpackDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower)).UnbiasedExponent))
863
if (BinaryPrimitives.TryWriteInt32LittleEndian(destination, Number.UnpackDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower)).UnbiasedExponent))
876
if (BinaryPrimitives.TryWriteUInt128BigEndian(destination, Number.UnpackDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower)).Significand))
889
if (BinaryPrimitives.TryWriteUInt128LittleEndian(destination, Number.UnpackDecimalIeee754<Decimal128, UInt128>(new
UInt128
(_upper, _lower)).Significand))
904
public static Decimal128 Acos(Decimal128 x) => new Decimal128(Number.AcosDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
907
public static Decimal128 AcosPi(Decimal128 x) => new Decimal128(Number.AcosPiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
910
public static Decimal128 Acosh(Decimal128 x) => new Decimal128(Number.AcoshDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
913
public static Decimal128 Asin(Decimal128 x) => new Decimal128(Number.AsinDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
916
public static Decimal128 AsinPi(Decimal128 x) => new Decimal128(Number.AsinPiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
919
public static Decimal128 Asinh(Decimal128 x) => new Decimal128(Number.AsinhDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
922
public static Decimal128 Atan(Decimal128 x) => new Decimal128(Number.AtanDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
925
public static Decimal128 Atan2(Decimal128 y, Decimal128 x) => new Decimal128(Number.Atan2DecimalIeee754<Decimal128, UInt128>(new
UInt128
(y._upper, y._lower), new
UInt128
(x._upper, x._lower)));
928
public static Decimal128 Atan2Pi(Decimal128 y, Decimal128 x) => new Decimal128(Number.Atan2PiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(y._upper, y._lower), new
UInt128
(x._upper, x._lower)));
931
public static Decimal128 AtanPi(Decimal128 x) => new Decimal128(Number.AtanPiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
934
public static Decimal128 Atanh(Decimal128 x) => new Decimal128(Number.AtanhDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
937
public static Decimal128 BitDecrement(Decimal128 x) => new Decimal128(Number.BitDecrementDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
940
public static Decimal128 BitIncrement(Decimal128 x) => new Decimal128(Number.BitIncrementDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
943
public static Decimal128 Cbrt(Decimal128 x) => new Decimal128(Number.CbrtDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
946
public static Decimal128 Cos(Decimal128 x) => new Decimal128(Number.CosDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
949
public static Decimal128 CosPi(Decimal128 x) => new Decimal128(Number.CosPiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
952
public static Decimal128 Cosh(Decimal128 x) => new Decimal128(Number.CoshDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
955
public static Decimal128 Exp(Decimal128 x) => new Decimal128(Number.ExpDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
958
public static Decimal128 Exp10(Decimal128 x) => new Decimal128(Number.Exp10DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
961
public static Decimal128 Exp10M1(Decimal128 x) => new Decimal128(Number.Exp10M1DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
964
public static Decimal128 Exp2(Decimal128 x) => new Decimal128(Number.Exp2DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
967
public static Decimal128 Exp2M1(Decimal128 x) => new Decimal128(Number.Exp2M1DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
970
public static Decimal128 ExpM1(Decimal128 x) => new Decimal128(Number.ExpM1DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
973
public static Decimal128 FusedMultiplyAdd(Decimal128 left, Decimal128 right, Decimal128 addend) => new Decimal128(Number.FusedMultiplyAddDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower), new
UInt128
(addend._upper, addend._lower)));
976
public static Decimal128 Hypot(Decimal128 x, Decimal128 y) => new Decimal128(Number.HypotDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
979
public static Decimal128 Ieee754Remainder(Decimal128 left, Decimal128 right) => new Decimal128(Number.Ieee754RemainderDecimalIeee754<Decimal128, UInt128>(new
UInt128
(left._upper, left._lower), new
UInt128
(right._upper, right._lower)));
982
public static int ILogB(Decimal128 x) => Number.ILogBDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower));
988
public static Decimal128 Log(Decimal128 x) => new Decimal128(Number.LogDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
991
public static Decimal128 Log(Decimal128 x, Decimal128 newBase) => new Decimal128(Number.LogDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(newBase._upper, newBase._lower)));
994
public static Decimal128 Log10(Decimal128 x) => new Decimal128(Number.Log10DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
997
public static Decimal128 Log10P1(Decimal128 x) => new Decimal128(Number.Log10P1DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1000
public static Decimal128 Log2(Decimal128 x) => new Decimal128(Number.Log2DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1003
public static Decimal128 Log2P1(Decimal128 x) => new Decimal128(Number.Log2P1DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1006
public static Decimal128 LogP1(Decimal128 x) => new Decimal128(Number.LogP1DecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1009
public static Decimal128 Pow(Decimal128 x, Decimal128 y) => new Decimal128(Number.PowDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1018
public static Decimal128 RootN(Decimal128 x, int n) => new Decimal128(Number.RootNDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), n));
1021
public static Decimal128 ScaleB(Decimal128 x, int n) => new Decimal128(Number.ScaleBDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), n));
1024
public static Decimal128 Sin(Decimal128 x) => new Decimal128(Number.SinDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1029
(UInt128 sin, UInt128 cos) = Number.SinCosDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower));
1036
(UInt128 sin, UInt128 cos) = Number.SinCosPiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower));
1041
public static Decimal128 SinPi(Decimal128 x) => new Decimal128(Number.SinPiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1044
public static Decimal128 Sinh(Decimal128 x) => new Decimal128(Number.SinhDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1047
public static Decimal128 Sqrt(Decimal128 x) => new Decimal128(Number.SqrtDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1050
public static Decimal128 Tan(Decimal128 x) => new Decimal128(Number.TanDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1053
public static Decimal128 TanPi(Decimal128 x) => new Decimal128(Number.TanPiDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1056
public static Decimal128 Tanh(Decimal128 x) => new Decimal128(Number.TanhDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1062
public static Decimal128 Quantize(Decimal128 x, Decimal128 y) => new Decimal128(Number.QuantizeDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1067
public static Decimal128 GetQuantum(Decimal128 x) => new Decimal128(Number.QuantumDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower)));
1073
public static bool HaveSameQuantum(Decimal128 x, Decimal128 y) => Number.SameQuantumDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower));
1078
public static Decimal128 Abs(Decimal128 value) => new Decimal128(Number.AbsDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower)));
1123
public static bool IsInteger(Decimal128 value) => Number.IsIntegerDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
1128
public static bool IsEvenInteger(Decimal128 value) => Number.IsEvenIntegerDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
1133
public static bool IsOddInteger(Decimal128 value) => Number.IsOddIntegerDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
1138
public static bool IsNormal(Decimal128 value) => Number.IsNormalDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
1143
public static bool IsSubnormal(Decimal128 value) => Number.IsSubnormalDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
1149
public static Decimal128 MaxMagnitude(Decimal128 x, Decimal128 y) => new Decimal128(Number.MaxMagnitudeDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1155
public static Decimal128 MaxMagnitudeNumber(Decimal128 x, Decimal128 y) => new Decimal128(Number.MaxMagnitudeNumberDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1161
public static Decimal128 MinMagnitude(Decimal128 x, Decimal128 y) => new Decimal128(Number.MinMagnitudeDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1167
public static Decimal128 MinMagnitudeNumber(Decimal128 x, Decimal128 y) => new Decimal128(Number.MinMagnitudeNumberDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1210
public static Decimal128 CopySign(Decimal128 value, Decimal128 sign) => new Decimal128(Number.CopySignDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower), new
UInt128
(sign._upper, sign._lower)));
1216
public static Decimal128 Max(Decimal128 x, Decimal128 y) => new Decimal128(Number.MaxDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1222
public static Decimal128 MaxNative(Decimal128 x, Decimal128 y) => new Decimal128(Number.MaxNativeDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1228
public static Decimal128 MaxNumber(Decimal128 x, Decimal128 y) => new Decimal128(Number.MaxNumberDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1234
public static Decimal128 Min(Decimal128 x, Decimal128 y) => new Decimal128(Number.MinDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1240
public static Decimal128 MinNative(Decimal128 x, Decimal128 y) => new Decimal128(Number.MinNativeDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1246
public static Decimal128 MinNumber(Decimal128 x, Decimal128 y) => new Decimal128(Number.MinNumberDecimalIeee754<Decimal128, UInt128>(new
UInt128
(x._upper, x._lower), new
UInt128
(y._upper, y._lower)));
1252
public static int Sign(Decimal128 value) => Number.SignDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
1258
static bool INumberBase<Decimal128>.IsCanonical(Decimal128 value) => Number.IsCanonicalDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower), nanReservedMask: new
UInt128
(0x01FF_C000_0000_0000, 0x0000_0000_0000_0000), nanPayloadMask: NaNPayloadMask, maxNaNPayload: new
UInt128
(0x0000_314D_C644_8D93, 0x38C1_5B09_FFFF_FFFF));
1267
static bool INumberBase<Decimal128>.IsZero(Decimal128 value) => Number.IsZeroDecimalIeee754<Decimal128, UInt128>(new
UInt128
(value._upper, value._lower));
1702
new
UInt128
(0, 1),
1703
new
UInt128
(0, 10),
1704
new
UInt128
(0, 100),
1705
new
UInt128
(0, 1000),
1706
new
UInt128
(0, 10000),
1707
new
UInt128
(0, 100000),
1708
new
UInt128
(0, 1000000),
1709
new
UInt128
(0, 10000000),
1710
new
UInt128
(0, 100000000),
1711
new
UInt128
(0, 1000000000),
1712
new
UInt128
(0, 10000000000),
1713
new
UInt128
(0, 100000000000),
1714
new
UInt128
(0, 1000000000000),
1715
new
UInt128
(0, 10000000000000),
1716
new
UInt128
(0, 100000000000000),
1717
new
UInt128
(0, 1000000000000000),
1718
new
UInt128
(0, 10000000000000000),
1719
new
UInt128
(0, 100000000000000000),
1720
new
UInt128
(0, 1000000000000000000),
1721
new
UInt128
(0, 10000000000000000000),
1722
new
UInt128
(5, 7766279631452241920),
1723
new
UInt128
(54, 3875820019684212736),
1724
new
UInt128
(542, 1864712049423024128),
1725
new
UInt128
(5421, 200376420520689664),
1726
new
UInt128
(54210, 2003764205206896640),
1727
new
UInt128
(542101, 1590897978359414784),
1728
new
UInt128
(5421010, 15908979783594147840),
1729
new
UInt128
(54210108, 11515845246265065472),
1730
new
UInt128
(542101086, 4477988020393345024),
1731
new
UInt128
(5421010862, 7886392056514347008),
1732
new
UInt128
(54210108624, 5076944270305263616),
1733
new
UInt128
(542101086242, 13875954555633532928),
1734
new
UInt128
(5421010862427, 9632337040368467968),
1735
new
UInt128
(54210108624275, 4089650035136921600),
1736
new
UInt128
(542101086242752, 4003012203950112768),
1791
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.MostSignificantBitOfSignificandMask => new
UInt128
(0x0002_0000_0000_0000, 0);
1793
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.NaNMask => new
UInt128
(NaNMaskUpper, 0);
1795
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.SNaNMask => new
UInt128
(SNaNMaskUpper, 0);
1799
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.SignMask => new
UInt128
(SignMaskUpper, 0);
1801
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.G0G1Mask => new
UInt128
(0x6000_0000_0000_0000, 0);
1807
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.G0ToGwPlus1ExponentMask => new
UInt128
(0x7FFE_0000_0000_0000, 0);
1809
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.G2ToGwPlus3ExponentMask => new
UInt128
(0x1FFF_8000_0000_0000, 0);
1811
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.GwPlus2ToGwPlus4SignificandMask => new
UInt128
(0x0001_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF);
1813
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.GwPlus4SignificandMask => new
UInt128
(0x0000_7FFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF);
1815
static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.MaxSignificand => new
UInt128
(upper: 0x0001_ED09_BEAD_87C0, lower: 0x378D_8E63_FFFF_FFFF); // 9_999_999_999_999_999_999_999_999_999_999_999;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
466
public static explicit operator Decimal32(Decimal128 value) => new Decimal32(Number.ConvertDecimalIeee754<Decimal128, UInt128, Decimal32, uint>(new
UInt128
(value._upper, value._lower)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
451
public static explicit operator Decimal64(Decimal128 value) => new Decimal64(Number.ConvertDecimalIeee754<Decimal128, UInt128, Decimal64, ulong>(new
UInt128
(value._upper, value._lower)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
86
return CompareDecimal<Decimal128, UInt128>(new
UInt128
(xValue._upper, xValue._lower), new
UInt128
(yValue._upper, yValue._lower));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (92)
496
return new
UInt128
(value.High, value.Low64);
559
UInt128 result = new
UInt128
((bits << 12) >> 1 | 0x8000_0000_0000_0000, 0x0000_0000_0000_0000);
576
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
589
return new
UInt128
(0, (ushort)value);
598
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
611
return new
UInt128
(0, (uint)value);
620
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
633
return new
UInt128
(0, (ulong)value);
642
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
655
return new
UInt128
(0, (nuint)value);
665
return new
UInt128
((ulong)(lower >> 63), (ulong)lower);
679
return new
UInt128
(0, (byte)value);
700
public static implicit operator UInt128(byte value) => new
UInt128
(0, value);
705
public static implicit operator UInt128(char value) => new
UInt128
(0, value);
711
public static implicit operator UInt128(ushort value) => new
UInt128
(0, value);
717
public static implicit operator UInt128(uint value) => new
UInt128
(0, value);
723
public static implicit operator UInt128(ulong value) => new
UInt128
(0, value);
729
public static implicit operator UInt128(nuint value) => new
UInt128
(0, value);
745
return new
UInt128
(upper, lower);
758
return new
UInt128
(upper, lower);
836
UInt128 valMiLo = new
UInt128
(valMi, valLo);
846
UInt128 divisor = new
UInt128
(divHi, divLo);
847
UInt128 chkMiLo = new
UInt128
(chkMi, chkLo);
894
return (new
UInt128
(highRes, lowRes), remainder);
909
return (new
UInt128
(highRes, lowRes), remainder >> shift);
942
Debug.Assert(Math.BigMul(quo, divisor) + rem == (new
UInt128
(hi, lo)));
985
Debug.Assert(new
UInt128
(valHi, valMiLo) < new
UInt128
(chkHi, chkLo));
998
Debug.Assert(new
UInt128
(valHi, valMiLo) == new
UInt128
(chkHi, chkLo) + remainder);
1040
new
UInt128
(0, 1UL),
1041
new
UInt128
(0, 10UL),
1042
new
UInt128
(0, 100UL),
1043
new
UInt128
(0, 1_000UL),
1044
new
UInt128
(0, 10_000UL),
1045
new
UInt128
(0, 100_000UL),
1046
new
UInt128
(0, 1_000_000UL),
1047
new
UInt128
(0, 10_000_000UL),
1048
new
UInt128
(0, 100_000_000UL),
1049
new
UInt128
(0, 1_000_000_000UL),
1050
new
UInt128
(0, 10_000_000_000UL),
1051
new
UInt128
(0, 100_000_000_000UL),
1052
new
UInt128
(0, 1_000_000_000_000UL),
1053
new
UInt128
(0, 10_000_000_000_000UL),
1054
new
UInt128
(0, 100_000_000_000_000UL),
1055
new
UInt128
(0, 1_000_000_000_000_000UL),
1056
new
UInt128
(0, 10_000_000_000_000_000UL),
1057
new
UInt128
(0, 100_000_000_000_000_000UL),
1058
new
UInt128
(0, 1_000_000_000_000_000_000UL),
1059
new
UInt128
(0, 10_000_000_000_000_000_000UL),
1060
new
UInt128
(5, 7766279631452241920UL),
1061
new
UInt128
(54, 3875820019684212736UL),
1062
new
UInt128
(542, 1864712049423024128UL),
1063
new
UInt128
(5421, 200376420520689664UL),
1064
new
UInt128
(54210, 2003764205206896640UL),
1065
new
UInt128
(542101, 1590897978359414784UL),
1066
new
UInt128
(5421010, 15908979783594147840UL),
1067
new
UInt128
(54210108, 11515845246265065472UL),
1068
new
UInt128
(542101086, 4477988020393345024UL),
1069
new
UInt128
(5421010862, 7886392056514347008UL),
1070
new
UInt128
(54210108624, 5076944270305263616UL),
1071
new
UInt128
(542101086242, 13875954555633532928UL),
1072
new
UInt128
(5421010862427, 9632337040368467968UL),
1073
new
UInt128
(54210108624275, 4089650035136921600UL),
1074
new
UInt128
(542101086242752, 4003012203950112768UL),
1075
new
UInt128
(5421010862427522, 3136633892082024448UL),
1076
new
UInt128
(54210108624275221, 12919594847110692864UL),
1077
new
UInt128
(542101086242752217, 68739955140067328UL),
1078
new
UInt128
(5421010862427522170, 687399551400673280UL),
1242
static UInt128 IBinaryNumber<UInt128>.AllBitsSet => new
UInt128
(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF);
1262
public static UInt128 operator &(UInt128 left, UInt128 right) => new
UInt128
(left._upper & right._upper, left._lower & right._lower);
1265
public static UInt128 operator |(UInt128 left, UInt128 right) => new
UInt128
(left._upper | right._upper, left._lower | right._lower);
1268
public static UInt128 operator ^(UInt128 left, UInt128 right) => new
UInt128
(left._upper ^ right._upper, left._lower ^ right._lower);
1271
public static UInt128 operator ~(UInt128 value) => new
UInt128
(~value._upper, ~value._lower);
1351
public static UInt128 MinValue => new
UInt128
(0, 0);
1354
public static UInt128 MaxValue => new
UInt128
(0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF);
1380
return new
UInt128
(upper, lower);
1419
lower = new
UInt128
(tl._lower, mull._lower);
1470
public static UInt128 One => new
UInt128
(0, 1);
1903
short actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x0000_0000_0000_7FFF)) ? short.MaxValue : (short)value;
1909
int actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x0000_0000_7FFF_FFFF)) ? int.MaxValue : (int)value;
1915
long actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x7FFF_FFFF_FFFF_FFFF)) ? long.MaxValue : (long)value;
1921
Int128 actualResult = (value >= new
UInt128
(0x7FFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? Int128.MaxValue : (Int128)value;
1932
nint actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x7FFF_FFFF_FFFF_FFFF)) ? nint.MaxValue : (nint)value;
1939
sbyte actualResult = (value >= new
UInt128
(0x0000_0000_0000_0000, 0x0000_0000_0000_007F)) ? sbyte.MaxValue : (sbyte)value;
2077
return new
UInt128
(upper, 0);
2087
return new
UInt128
(upper, lower);
2113
return new
UInt128
(0, lower);
2123
return new
UInt128
(upper, lower);
2155
return new
UInt128
(upper, lower);
2168
return new
UInt128
(upper, lower);
2222
static UInt128 IBinaryIntegerParseAndFormatInfo<UInt128>.MaxValueDiv10 => new
UInt128
(0x1999_9999_9999_9999, 0x9999_9999_9999_9999);
System.Runtime.Numerics (8)
System\Numerics\BigInteger.cs (8)
2330
uu = len > 1 ? new
UInt128
(value._bits[1], value._bits[0]) : (UInt128)(ulong)value._bits[0];
2334
uu = new
UInt128
(
2457
? new
UInt128
(value._bits[1], value._bits[0])
2462
return new
UInt128
(
2580
else if (x <= new
UInt128
(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF))
2651
else if (value <= new
UInt128
(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF))
5147
UInt128 bits =
new
(upperBits, lowerBits);
5341
UInt128 bits =
new
(upperBits, lowerBits);