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

◆ VarDecCmp()

static int System.Decimal.DecCalc.VarDecCmp ( in decimal d1,
in decimal d2 )
inlinestaticpackage

Definition at line 1045 of file Decimal.cs.

1046 {
1047 if ((d2.Low64 | d2.High) == 0L)
1048 {
1049 if ((d1.Low64 | d1.High) == 0L)
1050 {
1051 return 0;
1052 }
1053 return (d1._flags >> 31) | 1;
1054 }
1055 if ((d1.Low64 | d1.High) == 0L)
1056 {
1057 return -((d2._flags >> 31) | 1);
1058 }
1059 int num = (d1._flags >> 31) - (d2._flags >> 31);
1060 if (num != 0)
1061 {
1062 return num;
1063 }
1064 return VarDecCmpSub(in d1, in d2);
1065 }
static int VarDecCmpSub(in decimal d1, in decimal d2)
Definition Decimal.cs:1067

References System.Runtime.Serialization.Dictionary, System.L, and System.Decimal.DecCalc.VarDecCmpSub().

Referenced by System.Decimal.Compare(), System.Decimal.CompareTo(), System.Decimal.CompareTo(), System.Decimal.Equals(), System.Decimal.Equals(), System.Decimal.Equals(), System.Decimal.Max(), System.Decimal.Min(), System.Decimal.operator!=(), System.Decimal.operator<(), System.Decimal.operator<=(), System.Decimal.operator==(), System.Decimal.operator>(), and System.Decimal.operator>=().