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

◆ Equals() [2/5]

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

Definition at line 937 of file BigInteger.cs.

938 {
939 if (_sign != other._sign)
940 {
941 return false;
942 }
943 if (_bits == other._bits)
944 {
945 return true;
946 }
947 if (_bits == null || other._bits == null)
948 {
949 return false;
950 }
951 int num = _bits.Length;
952 if (num != other._bits.Length)
953 {
954 return false;
955 }
956 int diffLength = GetDiffLength(_bits, other._bits, num);
957 return diffLength == 0;
958 }
readonly uint[] _bits
Definition BigInteger.cs:20
static int GetDiffLength(uint[] rgu1, uint[] rgu2, int cu)

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