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

◆ AddDivisor()

static unsafe uint System.Number.BigInteger.AddDivisor ( ref BigInteger lhs,
int lhsStartIndex,
ref BigInteger rhs )
inlinestaticprivate

Definition at line 438 of file Number.cs.

439 {
440 int length = lhs._length;
441 int length2 = rhs._length;
442 ulong num = 0uL;
443 for (int i = 0; i < length2; i++)
444 {
445 ref uint reference = ref lhs._blocks[lhsStartIndex + i];
446 ulong num2 = reference + num + rhs._blocks[i];
447 reference = (uint)num2;
448 num = num2 >> 32;
449 }
450 return (uint)num;
451 }

References System.length, and System.length2.

Referenced by System.Number.BigInteger.DivRem().