Clarify invariants across GPU divisor helpers
This commit is contained in:
1 parent
bccb2f43c9
commit
6e89700f80
5 files changed
+44
-52
No files matched your search
@@ -75,7 +75,10 @@ internal sealed class MersenneNumberDivisorCandidateGpuEvaluator : IDisposable
|
||||
// return;
|
||||
// }
|
||||
|
||||
EnsureCapacity(count);
|
||||
if (count > _capacity)
|
||||
{
|
||||
EnsureCapacity(count);
|
||||
}
|
||||
|
||||
Span<ulong> hostCandidateSpan = _hostCandidates.AsSpan(0, count);
|
||||
Span<byte> hostMaskSpan = _hostMask.AsSpan(0, count);
|
||||
|
||||
Reference in new issue
Block a user