Tiny cleanup.
This commit is contained in:
1 parent
dce598c857
commit
048d1576ef
1 file changed
+9
-10
@@ -117,23 +117,22 @@ public sealed class MersenneNumberDivisorByDivisorCpuTester : IMersenneNumberDiv
|
|||||||
{
|
{
|
||||||
BigInteger allowedMax = ComputeAllowedMaxDivisorBig(prime, _divisorLimit);
|
BigInteger allowedMax = ComputeAllowedMaxDivisorBig(prime, _divisorLimit);
|
||||||
|
|
||||||
// The CPU by-divisor run always hands us primes with enormous divisor limits, so the fallback below never executes.
|
// The CPU by-divisor run always hands us primes with enormous divisor limits, so the fallback below never executes.
|
||||||
// if (allowedMax < 3UL)
|
// if (allowedMax < 3UL)
|
||||||
// {
|
// {
|
||||||
// // EvenPerfectBitScanner routes primes below the small-divisor cutoff to the GPU path, so the CPU path still sees
|
// // EvenPerfectBitScanner routes primes below the small-divisor cutoff to the GPU path, so the CPU path still sees
|
||||||
// // trivial candidates during targeted tests. Short-circuit here to keep those runs aligned with the production flow.
|
// // trivial candidates during targeted tests. Short-circuit here to keep those runs aligned with the production flow.
|
||||||
// divisorsExhausted = true;
|
// divisorsExhausted = true;
|
||||||
// return true;
|
// return true;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
bool processedAll;
|
|
||||||
|
|
||||||
bool composite = CheckDivisors(
|
bool composite = CheckDivisors(
|
||||||
gpu,
|
gpu,
|
||||||
prime,
|
prime,
|
||||||
allowedMax,
|
allowedMax,
|
||||||
_minK,
|
_minK,
|
||||||
out processedAll,
|
out bool processedAll,
|
||||||
out divisor);
|
out divisor);
|
||||||
|
|
||||||
if (composite)
|
if (composite)
|
||||||
|
|||||||
Reference in new issue
Block a user