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

◆ CompareTo() [6/6]

int System.Numerics.BigInteger.CompareTo ( ulong other)
inline

Definition at line 977 of file BigInteger.cs.

978 {
979 if (_sign < 0)
980 {
981 return -1;
982 }
983 if (_bits == null)
984 {
985 return ((ulong)_sign).CompareTo(other);
986 }
987 int num = _bits.Length;
988 if (num > 2)
989 {
990 return 1;
991 }
992 return ((num == 2) ? NumericsHelpers.MakeUlong(_bits[1], _bits[0]) : _bits[0]).CompareTo(other);
993 }
readonly uint[] _bits
Definition BigInteger.cs:20
int CompareTo(long other)

References System.Numerics.BigInteger._bits, System.Numerics.BigInteger._sign, System.Numerics.BigInteger.CompareTo(), System.Numerics.NumericsHelpers.MakeUlong(), and System.other.