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;
|
_modulus = modulus;
|
||||||
_modulusWide = divisor.ModulusWide;
|
_modulusWide = divisor.ModulusWide;
|
||||||
PreviousExponent = 0UL;
|
PreviousExponent = 0UL;
|
||||||
_currentResidue = new GpuUInt128(1UL);
|
_currentResidue = GpuUInt128.One;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
@@ -38,7 +38,7 @@ internal struct ExponentRemainderStepperGpu
|
|||||||
public void Reset()
|
public void Reset()
|
||||||
{
|
{
|
||||||
PreviousExponent = 0UL;
|
PreviousExponent = 0UL;
|
||||||
_currentResidue = new GpuUInt128(1UL);
|
_currentResidue = GpuUInt128.One;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in new issue
Block a user