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

◆ Compare() [1/2]

static unsafe int System.Numerics.BigIntegerCalculator.Compare ( uint * left,
int leftLength,
uint * right,
int rightLength )
inlinestaticprivate

Definition at line 416 of file BigIntegerCalculator.cs.

417 {
418 if (leftLength < rightLength)
419 {
420 return -1;
421 }
422 if (leftLength > rightLength)
423 {
424 return 1;
425 }
426 for (int num = leftLength - 1; num >= 0; num--)
427 {
428 if (left[num] < right[num])
429 {
430 return -1;
431 }
432 if (left[num] > right[num])
433 {
434 return 1;
435 }
436 }
437 return 0;
438 }