System\Number.BigInteger.cs (37)
358base1E9Length <= BigIntegerCalculator.StackAllocThreshold
359? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
384resultLength <= BigIntegerCalculator.StackAllocThreshold
385? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
417(uint)powersOf1e9BufferLength <= BigIntegerCalculator.StackAllocThreshold
418? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
429leadingLength <= BigIntegerCalculator.StackAllocThreshold
430? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
435leading = leading.Slice(0, BigIntegerCalculator.ActualLength(leading));
456base1E9 = base1E9.Slice(0, BigIntegerCalculator.ActualLength(base1E9));
476bufferLength <= BigIntegerCalculator.StackAllocThreshold
477? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
483ReadOnlySpan<uint> buffer2 = buffer.Slice(0, BigIntegerCalculator.ActualLength(buffer));
486BigIntegerCalculator.Multiply(buffer2, multiplier, bitsUpper);
488BigIntegerCalculator.Multiply(multiplier, buffer2, bitsUpper);
494BigIntegerCalculator.AddSelf(bits, buffer.Slice(0, BigIntegerCalculator.ActualLength(buffer)));
820Span<uint> base1E9Buffer = ((uint)base1E9BufferLength <= BigIntegerCalculator.StackAllocThreshold ?
976int ToStringNaiveThreshold = BigIntegerCalculator.DivideBurnikelZieglerThreshold;
990powersOf1e9BufferLength <= BigIntegerCalculator.StackAllocThreshold
991? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
1018while (bits.Length < powOfTen.Length + omittedLength || BigIntegerCalculator.Compare(bits.Slice(omittedLength), powOfTen) < 0)
1027Span<uint> upper = ((uint)upperLength <= BigIntegerCalculator.StackAllocThreshold
1028? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
1033Span<uint> lower = ((uint)lowerLength <= BigIntegerCalculator.StackAllocThreshold
1034? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
1038BigIntegerCalculator.Divide(bits.Slice(omittedLength), powOfTen, upper, lower.Slice(omittedLength));
1047lower.Slice(0, BigIntegerCalculator.ActualLength(lower)),
1059upper.Slice(0, BigIntegerCalculator.ActualLength(upper)),
1232BigIntegerCalculator.Square(src, dst);
1300BigIntegerCalculator.Multiply(left, UInt32PowersOfTen[trailingZeroCount], bits.Slice(0, left.Length + 1));
1307bits.Length <= BigIntegerCalculator.StackAllocThreshold
1308? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
1344BigIntegerCalculator.Multiply(src, power, dst);
1346BigIntegerCalculator.Multiply(power, src, dst);
1364BigIntegerCalculator.Multiply(powersOfTen, left, bits2);
1366BigIntegerCalculator.Multiply(left, powersOfTen, bits2);