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

◆ Equals() [3/5]

bool System.Numerics.BigInteger.Equals ( long other)
inline

Definition at line 895 of file BigInteger.cs.

896 {
897 if (_bits == null)
898 {
899 return _sign == other;
900 }
901 int num;
902 if ((_sign ^ other) < 0 || (num = _bits.Length) > 2)
903 {
904 return false;
905 }
906 ulong num2 = (ulong)((other < 0) ? (-other) : other);
907 if (num == 1)
908 {
909 return _bits[0] == num2;
910 }
911 return NumericsHelpers.MakeUlong(_bits[1], _bits[0]) == num2;
912 }
readonly uint[] _bits
Definition BigInteger.cs:20

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