Use constant residue initialization in GPU stepper
This commit is contained in:
1 parent
4e9d57df4b
commit
ad19096bab
1 file changed
+2
-2
@@ -21,7 +21,7 @@ internal struct ExponentRemainderStepperGpu
|
||||
_modulus = modulus;
|
||||
_modulusWide = divisor.ModulusWide;
|
||||
PreviousExponent = 0UL;
|
||||
_currentResidue = new GpuUInt128(1UL);
|
||||
_currentResidue = GpuUInt128.One;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
@@ -38,7 +38,7 @@ internal struct ExponentRemainderStepperGpu
|
||||
public void Reset()
|
||||
{
|
||||
PreviousExponent = 0UL;
|
||||
_currentResidue = new GpuUInt128(1UL);
|
||||
_currentResidue = GpuUInt128.One;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user