1 instantiation of PowersOf1e9
System.Runtime.Numerics (1)
System\Number.BigInteger.cs (1)
414
PowersOf1e9 powersOf1e9 = new
PowersOf1e9
(powersOf1e9Buffer);
20 references to PowersOf1e9
System.Runtime.Numerics (20)
System\Number.BigInteger.cs (20)
348
int base1E9Length = (intDigits.Length +
PowersOf1e9
.MaxPartialDigits - 1) /
PowersOf1e9
.MaxPartialDigits;
355
ReadOnlySpan<byte> leadingDigits = intDigits[..(intDigits.Length %
PowersOf1e9
.MaxPartialDigits)];
362
Debug.Assert(intDigits.Length %
PowersOf1e9
.MaxPartialDigits == 0);
366
uint.TryParse(intDigits.Slice(0,
PowersOf1e9
.MaxPartialDigits), out base1E9[di]);
367
intDigits = intDigits.Slice(
PowersOf1e9
.MaxPartialDigits);
404
int valueDigits = (base1E9.Length - 1) *
PowersOf1e9
.MaxPartialDigits + FormattingHelpers.CountDigits(base1E9[^1]);
406
int powersOf1e9BufferLength =
PowersOf1e9
.GetBufferSize(Math.Max(valueDigits, trailingZeroCount + 1), out int maxIndex);
414
PowersOf1e9
powersOf1e9 = new PowersOf1e9(powersOf1e9Buffer);
418
int leadingLength = checked((int)(digitRatio *
PowersOf1e9
.MaxPartialDigits * base1E9.Length) + 3);
443
static void Recursive(in
PowersOf1e9
powersOf1e9, int powersOf1e9Index, ReadOnlySpan<uint> base1E9, Span<uint> bits)
461
int multiplierTrailingZeroCount =
PowersOf1e9
.OmittedLength(powersOf1e9Index);
465
int bufferLength = checked((int)(digitRatio *
PowersOf1e9
.MaxPartialDigits * multiplier1E9Length) + 1 + 2);
501
int trailingPartialCount = Math.DivRem(trailingZeroCount,
PowersOf1e9
.MaxPartialDigits, out int remainingTrailingZeroCount);
504
uint carry = MultiplyAdd(bits.Slice(0, resultLength),
PowersOf1e9
.TenPowMaxPartial, 0);
529
uint carry = MultiplyAdd(bits.Slice(0, resultLength),
PowersOf1e9
.TenPowMaxPartial, base1E9[i]);
751
const uint TenPowMaxPartial =
PowersOf1e9
.TenPowMaxPartial;
752
const int MaxPartialDigits =
PowersOf1e9
.MaxPartialDigits;
931
bufferEnd = UInt32ToDecChars(bufferEnd, base1E9Value[i],
PowersOf1e9
.MaxPartialDigits);
932
digits -=
PowersOf1e9
.MaxPartialDigits;