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

◆ SubtractDivisor()

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

Definition at line 478 of file Number.cs.

479 {
480 int num = lhs._length - lhsStartIndex;
481 int length = rhs._length;
482 ulong num2 = 0uL;
483 for (int i = 0; i < length; i++)
484 {
485 num2 += rhs._blocks[i] * q;
486 uint num3 = (uint)num2;
487 num2 >>= 32;
488 ref uint reference = ref lhs._blocks[lhsStartIndex + i];
489 if (reference < num3)
490 {
491 num2++;
492 }
493 reference -= num3;
494 }
495 return (uint)num2;
496 }

References System.length.

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