Clarify cycle stepper reset inlining
This commit is contained in:
1 parent
8b467c27f3
commit
b8aa845c5c
53 files changed
+1736
-1131
No files matched your search
@@ -14,6 +14,9 @@ public sealed class EulerPrimeTester
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public bool IsEulerPrime(ulong n)
|
||||
{
|
||||
// TODO: Inline this helper into callers so we skip the wrapper and pass the divisibility check directly to the optimized
|
||||
// prime tester path highlighted in the CPU benchmarks.
|
||||
return (n & 3UL) == 1UL && _primeTester.IsPrime(n, CancellationToken.None);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user