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

◆ Compare() [2/2]

static int System.Numerics.BigIntegerCalculator.Compare ( uint[] left,
uint[] right )
inlinestatic

Definition at line 392 of file BigIntegerCalculator.cs.

393 {
394 if (left.Length < right.Length)
395 {
396 return -1;
397 }
398 if (left.Length > right.Length)
399 {
400 return 1;
401 }
402 for (int num = left.Length - 1; num >= 0; num--)
403 {
404 if (left[num] < right[num])
405 {
406 return -1;
407 }
408 if (left[num] > right[num])
409 {
410 return 1;
411 }
412 }
413 return 0;
414 }

Referenced by System.Numerics.BigInteger.GreatestCommonDivisor(), System.Numerics.BigIntegerCalculator.FastReducer.SubMod(), and System.Numerics.BigInteger.Subtract().