System\Number.BigInteger.cs (37)
356base1E9Length <= BigIntegerCalculator.StackAllocThreshold
357? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
382resultLength <= BigIntegerCalculator.StackAllocThreshold
383? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
415(uint)powersOf1e9BufferLength <= BigIntegerCalculator.StackAllocThreshold
416? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
427leadingLength <= BigIntegerCalculator.StackAllocThreshold
428? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
433leading = leading.Slice(0, BigIntegerCalculator.ActualLength(leading));
454base1E9 = base1E9.Slice(0, BigIntegerCalculator.ActualLength(base1E9));
474bufferLength <= BigIntegerCalculator.StackAllocThreshold
475? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
481ReadOnlySpan<uint> buffer2 = buffer.Slice(0, BigIntegerCalculator.ActualLength(buffer));
484BigIntegerCalculator.Multiply(buffer2, multiplier, bitsUpper);
486BigIntegerCalculator.Multiply(multiplier, buffer2, bitsUpper);
492BigIntegerCalculator.AddSelf(bits, buffer.Slice(0, BigIntegerCalculator.ActualLength(buffer)));
809Span<uint> base1E9Buffer = ((uint)base1E9BufferLength <= BigIntegerCalculator.StackAllocThreshold ?
939int ToStringNaiveThreshold = BigIntegerCalculator.DivideBurnikelZieglerThreshold;
953powersOf1e9BufferLength <= BigIntegerCalculator.StackAllocThreshold
954? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
981while (bits.Length < powOfTen.Length + omittedLength || BigIntegerCalculator.Compare(bits.Slice(omittedLength), powOfTen) < 0)
990Span<uint> upper = ((uint)upperLength <= BigIntegerCalculator.StackAllocThreshold
991? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
996Span<uint> lower = ((uint)lowerLength <= BigIntegerCalculator.StackAllocThreshold
997? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
1001BigIntegerCalculator.Divide(bits.Slice(omittedLength), powOfTen, upper, lower.Slice(omittedLength));
1010lower.Slice(0, BigIntegerCalculator.ActualLength(lower)),
1022upper.Slice(0, BigIntegerCalculator.ActualLength(upper)),
1195BigIntegerCalculator.Square(src, dst);
1263BigIntegerCalculator.Multiply(left, UInt32PowersOfTen[trailingZeroCount], bits.Slice(0, left.Length + 1));
1270bits.Length <= BigIntegerCalculator.StackAllocThreshold
1271? stackalloc uint[BigIntegerCalculator.StackAllocThreshold]
1307BigIntegerCalculator.Multiply(src, power, dst);
1309BigIntegerCalculator.Multiply(power, src, dst);
1327BigIntegerCalculator.Multiply(powersOfTen, left, bits2);
1329BigIntegerCalculator.Multiply(left, powersOfTen, bits2);