Compilation errors fixed

This commit is contained in:
mlemanczyk committed 2025-10-17 02:40:15 +02:00
1 parent a0154dd587
commit 495b3918c1
3 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -1,9 +1,10 @@
using System; using System;
using System.Numerics; using System.Numerics;
using System.Runtime.CompilerServices;
namespace PerfectNumbers.Core; namespace PerfectNumbers.Core;
internal struct CycleRemainderStepper public struct CycleRemainderStepper
{ {
private readonly ulong _cycleLength; private readonly ulong _cycleLength;
private ulong _previousPrime; private ulong _previousPrime;
@@ -23,6 +24,7 @@ internal struct CycleRemainderStepper
_hasState = false; _hasState = false;
} }
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Reset() public void Reset()
{ {
// TODO: Inline this reset at the call sites so the hot loops reuse struct reinitialization // TODO: Inline this reset at the call sites so the hot loops reuse struct reinitialization
@@ -1522,4 +1522,4 @@ internal static partial class PrimeOrderCalculator
public readonly long Tertiary = tertiary; public readonly long Tertiary = tertiary;
} }
} }
}
@@ -5,6 +5,7 @@ using System.Diagnostics;
using System.Numerics; using System.Numerics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
using PerfectNumbers.Core.Gpu;
namespace PerfectNumbers.Core; namespace PerfectNumbers.Core;