95 instantiations of BigInteger
Microsoft.CodeAnalysis (2)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
System.Formats.Asn1 (2)
System.Formats.Cbor (1)
System.Runtime.Numerics (78)
System\Numerics\BigInteger.cs (72)
47private static readonly BigInteger s_bnMinInt = new BigInteger(-1, new uint[] { kuMaskHighBit });
48private static readonly BigInteger s_bnOneInt = new BigInteger(1);
49private static readonly BigInteger s_bnZeroInt = new BigInteger(0);
50private static readonly BigInteger s_bnMinusOneInt = new BigInteger(-1);
738return new BigInteger(unchecked((int)NumericsHelpers.Abs(value._sign)), value._bits);
807return new BigInteger(quotient, (dividend._sign < 0) ^ (divisor._sign < 0));
839remainder = new BigInteger(rest, dividend._sign < 0);
840var result = new BigInteger(quotient, (dividend._sign < 0) ^ (divisor._sign < 0));
912: new BigInteger(right._bits, negative: false);
920: new BigInteger(left._bits, negative: false);
968result = new BigInteger(bits, negative: false);
1042result = new BigInteger(bits, value._sign < 0 && !exponent.IsEven);
1084result = new BigInteger(bits, value._sign < 0 && (exponent & 1) != 0);
1095result = new BigInteger(bits, value._sign < 0 && (exponent & 1) != 0);
1716result = new BigInteger(bits, leftSign < 0);
1728result = new BigInteger(bits, leftSign < 0);
1740result = new BigInteger(bits, leftSign < 0);
1752result = new BigInteger(bits, leftSign < 0);
1794result = new BigInteger(bits, leftSign >= 0);
1806result = new BigInteger(bits, leftSign < 0);
1816result = new BigInteger(bits, leftSign >= 0);
1828result = new BigInteger(bits, leftSign < 0);
2165return new BigInteger(value);
2170return new BigInteger(value);
2178return new BigInteger((float)value);
2186return new BigInteger((float)value);
2203return new BigInteger(value);
2212return new BigInteger(value);
2220return new BigInteger(value);
2225return new BigInteger(value);
2230return new BigInteger(value);
2235return new BigInteger(value);
2297return new BigInteger(sign, bits);
2307return new BigInteger(value);
2311return new BigInteger((int)value);
2318return new BigInteger(value);
2324return new BigInteger(value);
2330return new BigInteger(value);
2336return new BigInteger(value);
2380return new BigInteger(sign, bits);
2391return new BigInteger(value);
2395return new BigInteger((uint)value);
2447var result = new BigInteger(z);
2503var result = new BigInteger(z);
2554var result = new BigInteger(z);
2609return new BigInteger(value._sign, z);
2629return new BigInteger(value << smallShift, null);
2641return new BigInteger(Math.Sign(value), rgu);
2667return new BigInteger(value._sign >> smallShift, null);
2677return new BigInteger(value._sign >> (kcbitUint - 1), null);
2700BigInteger result = new BigInteger(zd, neg);
2716return new BigInteger(-value._sign, value._bits);
2779result = new BigInteger(bits, (leftSign < 0) ^ (rightSign < 0));
2791result = new BigInteger(bits, (leftSign < 0) ^ (rightSign < 0));
2802result = new BigInteger(bits, (leftSign < 0) ^ (rightSign < 0));
2815result = new BigInteger(bits, (leftSign < 0) ^ (rightSign < 0));
2859return new BigInteger(quotient, (dividend._sign < 0) ^ (divisor._sign < 0));
2882var result = new BigInteger(quotient, (dividend._sign < 0) ^ (divisor._sign < 0));
2932var result = new BigInteger(bits, dividend._sign < 0);
3275? new BigInteger((int)rs)
3276: new BigInteger(rs);
3296? new BigInteger((int)rs)
3297: new BigInteger(rs);
3352var result = new BigInteger(zd, negative);
3391value = new BigInteger(source, isUnsigned, isBigEndian: true);
3398value = new BigInteger(source, isUnsigned, isBigEndian: false);
5112return new BigInteger(value._sign >>> smallShift, null);
5149return new BigInteger(int.MinValue >>> smallShift);
5153return new BigInteger(smallShift == 0 ? -1 : +1, rgu);
5199result = new BigInteger(zd, true);
5203result = new BigInteger(zd, false);
5212return new BigInteger(value._sign >> (kcbitUint - 1), null);
System.Security.Cryptography (4)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (2)
System.Security.Cryptography.Xml (1)
559 references to BigInteger
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Mvc.Abstractions (4)
Microsoft.AspNetCore.OpenApi (4)
Microsoft.CodeAnalysis (25)
RealParser.cs (22)
60private static readonly BigInteger s_bigZero = BigInteger.Zero;
61private static readonly BigInteger s_bigOne = BigInteger.One;
62private static readonly BigInteger s_bigTwo = new BigInteger(2);
63private static readonly BigInteger s_bigTen = new BigInteger(10);
415BigInteger integerValue = AccumulateDecimalDigitsIntoBigInteger(data, integerFirstIndex, integerLastIndex);
465BigInteger fractionalNumerator = AccumulateDecimalDigitsIntoBigInteger(data, fractionalFirstIndex, fractionalLastIndex);
468BigInteger fractionalDenominator = s_bigOne;
531BigInteger fractionalRemainder;
532BigInteger bigFractionalMantissa = BigInteger.DivRem(fractionalNumerator, fractionalDenominator, out fractionalRemainder);
621private static BigInteger AccumulateDecimalDigitsIntoBigInteger(DecimalFloatingPointString data, uint integer_first_index, uint integer_last_index)
625return BigInteger.Parse(valueString);
661private static uint CountSignificantBits(BigInteger data, out byte[] dataBytes)
682private static uint CountSignificantBits(BigInteger data)
750private static void ShiftLeft(ref BigInteger number, uint shift)
752var powerOfTwo = BigInteger.Pow(s_bigTwo, (int)shift);
761private static void MultiplyByPowerOfTen(ref BigInteger number, uint power)
763var powerOfTen = BigInteger.Pow(s_bigTen, (int)power);
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (3)
Microsoft.ML.Parquet (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (8)
netstandard (1)
PresentationBuildTasks (3)
System.Data.Common (51)
System\Data\Common\BigIntegerStorage.cs (23)
13private BigInteger[] _values = default!; // Late-initialized
16base(column, typeof(BigInteger), BigInteger.Zero, StorageType.BigInteger)
27BigInteger valueNo1 = _values[recordNo1];
28BigInteger valueNo2 = _values[recordNo2];
52BigInteger valueNo1 = _values[recordNo];
58return valueNo1.CompareTo((BigInteger)value);
62internal static BigInteger ConvertToBigInteger(object value, IFormatProvider formatProvider)
64if (value.GetType() == typeof(BigInteger)) { return (BigInteger)value; }
65else if (value.GetType() == typeof(string)) { return BigInteger.Parse((string)value, formatProvider); }
74else { throw ExceptionBuilder.ConvertFailed(value.GetType(), typeof(System.Numerics.BigInteger)); }
77internal static object ConvertFromBigInteger(BigInteger value, Type type, IFormatProvider formatProvider)
91else if (type == typeof(System.Numerics.BigInteger)) { return value; }
92else { throw ExceptionBuilder.ConvertFailed(typeof(System.Numerics.BigInteger), type); }
119BigInteger value = _values[record];
132_values[record] = BigInteger.Zero;
152return BigInteger.Parse(s, System.Globalization.CultureInfo.InvariantCulture);
159return ((BigInteger)value).ToString("D", System.Globalization.CultureInfo.InvariantCulture);
164return new BigInteger[recordCount];
169BigInteger[] typedStore = (BigInteger[])store;
176_values = (BigInteger[])store;
System.Formats.Asn1 (17)
System.Formats.Cbor (7)
System.Net.Security (2)
System.Numerics (1)
System.Runtime.Numerics (381)
System\Number.BigInteger.cs (14)
58internal static ParsingStatus TryParseBigInteger<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info, out BigInteger result)
79internal static unsafe ParsingStatus TryParseBigIntegerNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info, out BigInteger result)
125internal static BigInteger ParseBigInteger<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info)
133ParsingStatus status = TryParseBigInteger(value, style, info, out BigInteger result);
142internal static ParsingStatus TryParseBigIntegerHexOrBinaryNumberStyle<TParser, TChar>(ReadOnlySpan<TChar> value, NumberStyles style, out BigInteger result)
241if (totalUIntCount > BigInteger.MaxLength)
268if (bits.Length + 1 > BigInteger.MaxLength)
316private static ParsingStatus NumberToBigInteger(ref NumberBuffer number, out BigInteger result)
556private static string? FormatBigIntegerToHex<TChar>(bool targetSpan, BigInteger value, char format, int digits, NumberFormatInfo info, Span<TChar> destination, out int charsWritten, out bool spanSuccess)
641private static string? FormatBigIntegerToBinary<TChar>(bool targetSpan, BigInteger value, int digits, Span<TChar> destination, out int charsWritten, out bool spanSuccess)
741internal static string FormatBigInteger(BigInteger value, string? format, NumberFormatInfo info)
746internal static bool TryFormatBigInteger<TChar>(BigInteger value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten)
753private static unsafe string? FormatBigInteger<TChar>(bool targetSpan, BigInteger value, string? formatString, ReadOnlySpan<char> formatSpan, NumberFormatInfo info, Span<TChar> destination, out int charsWritten, out bool spanSuccess)
813Debug.Assert(BigInteger.MaxLength * digitRatio + 1 < Array.MaxLength); // won't overflow
System\Numerics\BigInteger.cs (357)
20IComparable<BigInteger>,
21IEquatable<BigInteger>,
22IBinaryInteger<BigInteger>,
23ISignedNumber<BigInteger>
47private static readonly BigInteger s_bnMinInt = new BigInteger(-1, new uint[] { kuMaskHighBit });
48private static readonly BigInteger s_bnOneInt = new BigInteger(1);
49private static readonly BigInteger s_bnZeroInt = new BigInteger(0);
50private static readonly BigInteger s_bnMinusOneInt = new BigInteger(-1);
634public static BigInteger Zero { get { return s_bnZeroInt; } }
636public static BigInteger One { get { return s_bnOneInt; } }
638public static BigInteger MinusOne { get { return s_bnMinusOneInt; } }
669public static BigInteger Parse(string value)
674public static BigInteger Parse(string value, NumberStyles style)
679public static BigInteger Parse(string value, IFormatProvider? provider)
684public static BigInteger Parse(string value, NumberStyles style, IFormatProvider? provider)
690public static bool TryParse([NotNullWhen(true)] string? value, out BigInteger result)
695public static bool TryParse([NotNullWhen(true)] string? value, NumberStyles style, IFormatProvider? provider, out BigInteger result)
700public static BigInteger Parse(ReadOnlySpan<char> value, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
705public static BigInteger Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
710public static bool TryParse(ReadOnlySpan<char> value, out BigInteger result)
715public static bool TryParse(ReadOnlySpan<char> value, NumberStyles style, IFormatProvider? provider, out BigInteger result)
720public static bool TryParse(ReadOnlySpan<byte> utf8Text, out BigInteger result)
725public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out BigInteger result)
730public static int Compare(BigInteger left, BigInteger right)
735public static BigInteger Abs(BigInteger value)
741public static BigInteger Add(BigInteger left, BigInteger right)
746public static BigInteger Subtract(BigInteger left, BigInteger right)
751public static BigInteger Multiply(BigInteger left, BigInteger right)
756public static BigInteger Divide(BigInteger dividend, BigInteger divisor)
761public static BigInteger Remainder(BigInteger dividend, BigInteger divisor)
766public static BigInteger DivRem(BigInteger dividend, BigInteger divisor, out BigInteger remainder)
776BigInteger quotient;
840var result = new BigInteger(quotient, (dividend._sign < 0) ^ (divisor._sign < 0));
852public static BigInteger Negate(BigInteger value)
857public static double Log(BigInteger value)
862public static double Log(BigInteger value, double baseValue)
889public static double Log10(BigInteger value)
894public static BigInteger GreatestCommonDivisor(BigInteger left, BigInteger right)
935private static BigInteger GreatestCommonDivisor(ReadOnlySpan<uint> leftBits, ReadOnlySpan<uint> rightBits)
940BigInteger result;
977public static BigInteger Max(BigInteger left, BigInteger right)
984public static BigInteger Min(BigInteger left, BigInteger right)
991public static BigInteger ModPow(BigInteger value, BigInteger exponent, BigInteger modulus)
1003BigInteger result;
1051public static BigInteger Pow(BigInteger value, int exponent)
1066BigInteger result;
1121return obj is BigInteger other && Equals(other);
1160public bool Equals(BigInteger other)
1198public int CompareTo(BigInteger other)
1228if (obj is not BigInteger bigInt)
1696private static BigInteger Add(ReadOnlySpan<uint> leftBits, int leftSign, ReadOnlySpan<uint> rightBits, int rightSign)
1703BigInteger result;
1761public static BigInteger operator -(BigInteger left, BigInteger right)
1774private static BigInteger Subtract(ReadOnlySpan<uint> leftBits, int leftSign, ReadOnlySpan<uint> rightBits, int rightSign)
1781BigInteger result;
1841public static explicit operator byte(BigInteger value)
1849public static explicit operator char(BigInteger value)
1854public static explicit operator decimal(BigInteger value)
1875public static explicit operator double(BigInteger value)
1915public static explicit operator Half(BigInteger value)
1923public static explicit operator BFloat16(BigInteger value)
1928public static explicit operator short(BigInteger value)
1933public static explicit operator int(BigInteger value)
1957public static explicit operator long(BigInteger value)
1993public static explicit operator Int128(BigInteger value)
2040public static explicit operator nint(BigInteger value)
2053public static explicit operator sbyte(BigInteger value)
2058public static explicit operator float(BigInteger value)
2064public static explicit operator ushort(BigInteger value)
2070public static explicit operator uint(BigInteger value)
2088public static explicit operator ulong(BigInteger value)
2113public static explicit operator UInt128(BigInteger value)
2147public static explicit operator nuint(BigInteger value)
2163public static explicit operator BigInteger(decimal value)
2168public static explicit operator BigInteger(double value)
2176public static explicit operator BigInteger(Half value)
2184public static explicit operator BigInteger(BFloat16 value)
2192public static explicit operator BigInteger(Complex value)
2198return (BigInteger)value.Real;
2201public static explicit operator BigInteger(float value)
2210public static implicit operator BigInteger(byte value)
2218public static implicit operator BigInteger(char value)
2223public static implicit operator BigInteger(short value)
2228public static implicit operator BigInteger(int value)
2233public static implicit operator BigInteger(long value)
2241public static implicit operator BigInteger(Int128 value)
2303public static implicit operator BigInteger(nint value)
2316public static implicit operator BigInteger(sbyte value)
2322public static implicit operator BigInteger(ushort value)
2328public static implicit operator BigInteger(uint value)
2334public static implicit operator BigInteger(ulong value)
2343public static implicit operator BigInteger(UInt128 value)
2387public static implicit operator BigInteger(nuint value)
2399public static BigInteger operator &(BigInteger left, BigInteger right)
2447var result = new BigInteger(z);
2455public static BigInteger operator |(BigInteger left, BigInteger right)
2503var result = new BigInteger(z);
2511public static BigInteger operator ^(BigInteger left, BigInteger right)
2554var result = new BigInteger(z);
2562public static BigInteger operator <<(BigInteger value, int shift)
2611private static BigInteger LeftShift(int value, int digitShift, int smallShift)
2644public static BigInteger operator >>(BigInteger value, int shift)
2700BigInteger result = new BigInteger(zd, neg);
2708public static BigInteger operator ~(BigInteger value)
2713public static BigInteger operator -(BigInteger value)
2719public static BigInteger operator +(BigInteger value)
2725public static BigInteger operator ++(BigInteger value)
2730public static BigInteger operator --(BigInteger value)
2735public static BigInteger operator +(BigInteger left, BigInteger right)
2748public static BigInteger operator *(BigInteger left, BigInteger right)
2759private static BigInteger Multiply(ReadOnlySpan<uint> left, int leftSign, ReadOnlySpan<uint> right, int rightSign)
2766BigInteger result;
2824public static BigInteger operator /(BigInteger dividend, BigInteger divisor)
2882var result = new BigInteger(quotient, (dividend._sign < 0) ^ (divisor._sign < 0));
2891public static BigInteger operator %(BigInteger dividend, BigInteger divisor)
2932var result = new BigInteger(bits, dividend._sign < 0);
2940public static bool operator <(BigInteger left, BigInteger right)
2945public static bool operator <=(BigInteger left, BigInteger right)
2950public static bool operator >(BigInteger left, BigInteger right)
2954public static bool operator >=(BigInteger left, BigInteger right)
2959public static bool operator ==(BigInteger left, BigInteger right)
2964public static bool operator !=(BigInteger left, BigInteger right)
2969public static bool operator <(BigInteger left, long right)
2974public static bool operator <=(BigInteger left, long right)
2979public static bool operator >(BigInteger left, long right)
2984public static bool operator >=(BigInteger left, long right)
2989public static bool operator ==(BigInteger left, long right)
2994public static bool operator !=(BigInteger left, long right)
2999public static bool operator <(long left, BigInteger right)
3004public static bool operator <=(long left, BigInteger right)
3009public static bool operator >(long left, BigInteger right)
3014public static bool operator >=(long left, BigInteger right)
3019public static bool operator ==(long left, BigInteger right)
3024public static bool operator !=(long left, BigInteger right)
3030public static bool operator <(BigInteger left, ulong right)
3036public static bool operator <=(BigInteger left, ulong right)
3042public static bool operator >(BigInteger left, ulong right)
3048public static bool operator >=(BigInteger left, ulong right)
3054public static bool operator ==(BigInteger left, ulong right)
3060public static bool operator !=(BigInteger left, ulong right)
3066public static bool operator <(ulong left, BigInteger right)
3072public static bool operator <=(ulong left, BigInteger right)
3078public static bool operator >(ulong left, BigInteger right)
3084public static bool operator >=(ulong left, BigInteger right)
3090public static bool operator ==(ulong left, BigInteger right)
3096public static bool operator !=(ulong left, BigInteger right)
3178static BigInteger IAdditiveIdentity<BigInteger, BigInteger>.AdditiveIdentity => Zero;
3185public static (BigInteger Quotient, BigInteger Remainder) DivRem(BigInteger left, BigInteger right)
3187BigInteger quotient = DivRem(left, right, out BigInteger remainder);
3192public static BigInteger LeadingZeroCount(BigInteger value)
3208public static BigInteger PopCount(BigInteger value)
3262public static BigInteger RotateLeft(BigInteger value, int rotateAmount)
3283public static BigInteger RotateRight(BigInteger value, int rotateAmount)
3303private static BigInteger Rotate(ReadOnlySpan<uint> bits, bool negative, long rotateLeftAmount)
3352var result = new BigInteger(zd, negative);
3361public static BigInteger TrailingZeroCount(BigInteger value)
3389static bool IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value)
3396static bool IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value)
3403int IBinaryInteger<BigInteger>.GetShortestBitLength()
3452int IBinaryInteger<BigInteger>.GetByteCount() => GetGenericMathByteCount();
3455bool IBinaryInteger<BigInteger>.TryWriteBigEndian(Span<byte> destination, out int bytesWritten)
3557bool IBinaryInteger<BigInteger>.TryWriteLittleEndian(Span<byte> destination, out int bytesWritten)
3702static BigInteger IBinaryNumber<BigInteger>.AllBitsSet => MinusOne;
3705public static bool IsPow2(BigInteger value) => value.IsPowerOfTwo;
3708public static BigInteger Log2(BigInteger value)
3730static BigInteger IMultiplicativeIdentity<BigInteger, BigInteger>.MultiplicativeIdentity => One;
3737public static BigInteger Clamp(BigInteger value, BigInteger min, BigInteger max)
3768public static BigInteger CopySign(BigInteger value, BigInteger sign)
3791static BigInteger INumber<BigInteger>.MaxNumber(BigInteger x, BigInteger y) => Max(x, y);
3794static BigInteger INumber<BigInteger>.MinNumber(BigInteger x, BigInteger y) => Min(x, y);
3797static int INumber<BigInteger>.Sign(BigInteger value)
3814static int INumberBase<BigInteger>.Radix => 2;
3818public static BigInteger CreateChecked<TOther>(TOther value)
3821BigInteger result;
3823if (typeof(TOther) == typeof(BigInteger))
3825result = (BigInteger)(object)value;
3837public static BigInteger CreateSaturating<TOther>(TOther value)
3840BigInteger result;
3842if (typeof(TOther) == typeof(BigInteger))
3844result = (BigInteger)(object)value;
3856public static BigInteger CreateTruncating<TOther>(TOther value)
3859BigInteger result;
3861if (typeof(TOther) == typeof(BigInteger))
3863result = (BigInteger)(object)value;
3874static bool INumberBase<BigInteger>.IsCanonical(BigInteger value) => true;
3877static bool INumberBase<BigInteger>.IsComplexNumber(BigInteger value) => false;
3880public static bool IsEvenInteger(BigInteger value)
3892static bool INumberBase<BigInteger>.IsFinite(BigInteger value) => true;
3895static bool INumberBase<BigInteger>.IsImaginaryNumber(BigInteger value) => false;
3898static bool INumberBase<BigInteger>.IsInfinity(BigInteger value) => false;
3901static bool INumberBase<BigInteger>.IsInteger(BigInteger value) => true;
3904static bool INumberBase<BigInteger>.IsNaN(BigInteger value) => false;
3907public static bool IsNegative(BigInteger value)
3914static bool INumberBase<BigInteger>.IsNegativeInfinity(BigInteger value) => false;
3917static bool INumberBase<BigInteger>.IsNormal(BigInteger value) => (value != 0);
3920public static bool IsOddInteger(BigInteger value)
3932public static bool IsPositive(BigInteger value)
3939static bool INumberBase<BigInteger>.IsPositiveInfinity(BigInteger value) => false;
3942static bool INumberBase<BigInteger>.IsRealNumber(BigInteger value) => true;
3945static bool INumberBase<BigInteger>.IsSubnormal(BigInteger value) => false;
3948static bool INumberBase<BigInteger>.IsZero(BigInteger value)
3955public static BigInteger MaxMagnitude(BigInteger x, BigInteger y)
3965static BigInteger INumberBase<BigInteger>.MaxMagnitudeNumber(BigInteger x, BigInteger y) => MaxMagnitude(x, y);
3968public static BigInteger MinMagnitude(BigInteger x, BigInteger y)
3978static BigInteger INumberBase<BigInteger>.MinMagnitudeNumber(BigInteger x, BigInteger y) => MinMagnitude(x, y);
3981static BigInteger INumberBase<BigInteger>.MultiplyAddEstimate(BigInteger left, BigInteger right, BigInteger addend) => (left * right) + addend;
3985static bool INumberBase<BigInteger>.TryConvertFromChecked<TOther>(TOther value, out BigInteger result) => TryConvertFromChecked(value, out result);
3988private static bool TryConvertFromChecked<TOther>(TOther value, out BigInteger result)
4006result = (BigInteger)actualValue;
4012result = checked((BigInteger)actualValue);
4018result = checked((BigInteger)actualValue);
4024result = checked((BigInteger)actualValue);
4066result = checked((BigInteger)actualValue);
4108static bool INumberBase<BigInteger>.TryConvertFromSaturating<TOther>(TOther value, out BigInteger result) => TryConvertFromSaturating(value, out result);
4111private static bool TryConvertFromSaturating<TOther>(TOther value, out BigInteger result)
4129result = (BigInteger)actualValue;
4135result = double.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4141result = Half.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4147result = BFloat16.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4189result = float.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4231static bool INumberBase<BigInteger>.TryConvertFromTruncating<TOther>(TOther value, out BigInteger result) => TryConvertFromTruncating(value, out result);
4234private static bool TryConvertFromTruncating<TOther>(TOther value, out BigInteger result)
4252result = (BigInteger)actualValue;
4258result = double.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4264result = Half.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4270result = BFloat16.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4312result = float.IsNaN(actualValue) ? Zero : (BigInteger)actualValue;
4354static bool INumberBase<BigInteger>.TryConvertToChecked<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result)
4479static bool INumberBase<BigInteger>.TryConvertToSaturating<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result)
4678static bool INumberBase<BigInteger>.TryConvertToTruncating<TOther>(BigInteger value, [MaybeNullWhen(false)] out TOther result)
5083public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out BigInteger result) => TryParse(s, NumberStyles.Integer, provider, out result);
5090public static BigInteger operator >>>(BigInteger value, int shiftAmount)
5191BigInteger result;
5220static BigInteger ISignedNumber<BigInteger>.NegativeOne => MinusOne;
5227public static BigInteger Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
5230public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out BigInteger result) => TryParse(s, NumberStyles.Integer, provider, out result);
5237public static BigInteger Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
5240public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out BigInteger result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
System.Security.Cryptography (34)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (3)
System.Security.Cryptography.Xml (3)