Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LehmerCore()

static void System.Numerics.BigIntegerCalculator.LehmerCore ( ref BitsBuffer xBuffer,
ref BitsBuffer yBuffer,
long a,
long b,
long c,
long d )
inlinestaticprivate

Definition at line 843 of file BigIntegerCalculator.cs.

844 {
845 uint[] bits = xBuffer.GetBits();
846 uint[] bits2 = yBuffer.GetBits();
847 int length = yBuffer.GetLength();
848 long num = 0L;
849 long num2 = 0L;
850 for (int i = 0; i < length; i++)
851 {
852 long num3 = a * bits[i] - b * bits2[i] + num;
853 long num4 = d * bits2[i] - c * bits[i] + num2;
854 num = num3 >> 32;
855 num2 = num4 >> 32;
856 bits[i] = (uint)num3;
857 bits2[i] = (uint)num4;
858 }
859 xBuffer.Refresh(length);
860 yBuffer.Refresh(length);
861 }

References System.L, and System.length.

Referenced by System.Numerics.BigIntegerCalculator.Gcd().