165 references to StackAllocThreshold
System.Runtime.Numerics (165)
System\Number.BigInteger.cs (13)
350
base1E9Length <= BigIntegerCalculator.
StackAllocThreshold
351
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
376
resultLength <= BigIntegerCalculator.
StackAllocThreshold
377
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
409
powersOf1e9BufferLength <= BigIntegerCalculator.
StackAllocThreshold
410
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
421
leadingLength <= BigIntegerCalculator.
StackAllocThreshold
422
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
468
bufferLength <= BigIntegerCalculator.
StackAllocThreshold
469
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
794
Span<uint> base1E9Buffer = cuMax < BigIntegerCalculator.
StackAllocThreshold
?
1124
bits.Length <= BigIntegerCalculator.
StackAllocThreshold
1125
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
System\Numerics\BigInteger.cs (86)
777
Span<uint> quotient = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
778
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
807
Span<uint> rest = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
808
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
813
Span<uint> quotient = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
814
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
930
Span<uint> bits = (leftBits.Length <= BigIntegerCalculator.
StackAllocThreshold
931
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
943
Span<uint> bits = (leftBits.Length <= BigIntegerCalculator.
StackAllocThreshold
944
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
998
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
999
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1058
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
1059
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1069
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
1070
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1686
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
1687
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1698
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
1699
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1710
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
1711
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1722
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
1723
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1764
Span<uint> bits = (size <= BigIntegerCalculator.
StackAllocThreshold
1765
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1776
Span<uint> bits = (size <= BigIntegerCalculator.
StackAllocThreshold
1777
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1786
Span<uint> bits = (size <= BigIntegerCalculator.
StackAllocThreshold
1787
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
1798
Span<uint> bits = (size <= BigIntegerCalculator.
StackAllocThreshold
1799
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2375
Span<uint> x = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2376
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2382
Span<uint> y = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2383
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2389
Span<uint> z = (size <= BigIntegerCalculator.
StackAllocThreshold
2390
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2431
Span<uint> x = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2432
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2438
Span<uint> y = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2439
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2445
Span<uint> z = (size <= BigIntegerCalculator.
StackAllocThreshold
2446
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2482
Span<uint> x = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2483
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2489
Span<uint> y = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2490
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2496
Span<uint> z = (size <= BigIntegerCalculator.
StackAllocThreshold
2497
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2536
Span<uint> xd = (xl <= BigIntegerCalculator.
StackAllocThreshold
2537
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2543
Span<uint> zd = ((uint)zl <= BigIntegerCalculator.
StackAllocThreshold
2544
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2597
Span<uint> xd = (xl <= BigIntegerCalculator.
StackAllocThreshold
2598
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2625
Span<uint> zd = ((uint)zl <= BigIntegerCalculator.
StackAllocThreshold
2626
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2739
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2740
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2751
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2752
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2761
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2762
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2773
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2774
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2786
Span<uint> bits = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2787
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2828
Span<uint> quotient = ((uint)size <= BigIntegerCalculator.
StackAllocThreshold
2829
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2854
Span<uint> quotient = ((uint)size < BigIntegerCalculator.
StackAllocThreshold
2855
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
2904
Span<uint> bits = (size <= BigIntegerCalculator.
StackAllocThreshold
2905
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
3306
Span<uint> xd = (xl <= BigIntegerCalculator.
StackAllocThreshold
)
3307
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
3317
Span<uint> zd = (zl <= BigIntegerCalculator.
StackAllocThreshold
)
3318
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
3461
Span<uint> xd = (xl <= BigIntegerCalculator.
StackAllocThreshold
)
3462
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
3472
Span<uint> zd = (zl <= BigIntegerCalculator.
StackAllocThreshold
)
3473
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
5322
Span<uint> xd = (xl <= BigIntegerCalculator.
StackAllocThreshold
5323
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
5341
Span<uint> zd = ((uint)zl <= BigIntegerCalculator.
StackAllocThreshold
5342
? stackalloc uint[BigIntegerCalculator.
StackAllocThreshold
]
System\Numerics\BigIntegerCalculator.DivRem.cs (24)
105
Span<uint> leftCopy = (left.Length <=
StackAllocThreshold
?
106
stackalloc uint[
StackAllocThreshold
]
141
Span<uint> quotient = (quotientLength <=
StackAllocThreshold
?
142
stackalloc uint[
StackAllocThreshold
]
178
Span<uint> leftCopy = (left.Length <=
StackAllocThreshold
?
179
stackalloc uint[
StackAllocThreshold
]
190
quotientActual = (quotientLength <=
StackAllocThreshold
?
191
stackalloc uint[
StackAllocThreshold
]
384
Span<uint> b = (n <=
StackAllocThreshold
?
385
stackalloc uint[
StackAllocThreshold
]
398
Span<uint> a = (aLength <=
StackAllocThreshold
?
399
stackalloc uint[
StackAllocThreshold
]
438
Span<uint> r = ((n + 1) <=
StackAllocThreshold
?
439
stackalloc uint[
StackAllocThreshold
]
443
Span<uint> z = (2 * n <=
StackAllocThreshold
?
444
stackalloc uint[
StackAllocThreshold
]
453
Span<uint> q = (n <=
StackAllocThreshold
?
454
stackalloc uint[
StackAllocThreshold
]
566
Span<uint> r1 = (left.Length <=
StackAllocThreshold
?
567
stackalloc uint[
StackAllocThreshold
]
610
Span<uint> r1 = ((right.Length + 1) <=
StackAllocThreshold
?
611
stackalloc uint[
StackAllocThreshold
]
639
Span<uint> d = (right.Length <=
StackAllocThreshold
?
640
stackalloc uint[
StackAllocThreshold
]
System\Numerics\BigIntegerCalculator.GcdInv.cs (2)
67
Span<uint> rightCopy = (right.Length <=
StackAllocThreshold
?
68
stackalloc uint[
StackAllocThreshold
]
System\Numerics\BigIntegerCalculator.PowMod.cs (28)
26
Span<uint> temp = (bits.Length <=
StackAllocThreshold
?
27
stackalloc uint[
StackAllocThreshold
]
32
Span<uint> valueCopy = (bits.Length <=
StackAllocThreshold
?
33
stackalloc uint[
StackAllocThreshold
]
219
Span<uint> valueCopy = (size <=
StackAllocThreshold
?
220
stackalloc uint[
StackAllocThreshold
]
238
Span<uint> temp = (bits.Length <=
StackAllocThreshold
?
239
stackalloc uint[
StackAllocThreshold
]
268
Span<uint> valueCopy = (size <=
StackAllocThreshold
?
269
stackalloc uint[
StackAllocThreshold
]
287
Span<uint> temp = (bits.Length <=
StackAllocThreshold
?
288
stackalloc uint[
StackAllocThreshold
]
326
Span<uint> r = ((uint)size <=
StackAllocThreshold
?
327
stackalloc uint[
StackAllocThreshold
]
333
Span<uint> mu = ((uint)size <=
StackAllocThreshold
?
334
stackalloc uint[
StackAllocThreshold
]
340
Span<uint> q1 = ((uint)size <=
StackAllocThreshold
?
341
stackalloc uint[
StackAllocThreshold
]
346
Span<uint> q2 = ((uint)size <=
StackAllocThreshold
?
347
stackalloc uint[
StackAllocThreshold
]
386
Span<uint> r = ((uint)size <=
StackAllocThreshold
?
387
stackalloc uint[
StackAllocThreshold
]
393
Span<uint> mu = ((uint)size <=
StackAllocThreshold
?
394
stackalloc uint[
StackAllocThreshold
]
400
Span<uint> q1 = ((uint)size <=
StackAllocThreshold
?
401
stackalloc uint[
StackAllocThreshold
]
406
Span<uint> q2 = ((uint)size <=
StackAllocThreshold
?
407
stackalloc uint[
StackAllocThreshold
]
System\Numerics\BigIntegerCalculator.SquMul.cs (12)
100
Span<uint> fold = ((uint)foldLength <=
StackAllocThreshold
?
101
stackalloc uint[
StackAllocThreshold
]
107
Span<uint> core = ((uint)coreLength <=
StackAllocThreshold
?
108
stackalloc uint[
StackAllocThreshold
]
225
Span<uint> carry = ((uint)carryLength <=
StackAllocThreshold
?
226
stackalloc uint[
StackAllocThreshold
]
284
Span<uint> leftFold = ((uint)foldLength <=
StackAllocThreshold
?
285
stackalloc uint[
StackAllocThreshold
]
290
Span<uint> rightFold = ((uint)foldLength <=
StackAllocThreshold
?
291
stackalloc uint[
StackAllocThreshold
]
303
Span<uint> core = ((uint)coreLength <=
StackAllocThreshold
?
304
stackalloc uint[
StackAllocThreshold
]