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

◆ ShiftRight()

void System.Xml.Xsl.XPathConvert.BigInteger.ShiftRight ( int cbit)
inline

Definition at line 1127 of file XPathConvert.cs.

1128 {
1129 int num = cbit >> 5;
1130 cbit &= 0x1F;
1131 if (num > 0)
1132 {
1133 ShiftUsRight(num);
1134 }
1135 if (cbit == 0 || _length == 0)
1136 {
1137 return;
1138 }
1139 int num2 = 0;
1140 while (true)
1141 {
1142 _digits[num2] >>= cbit;
1143 if (++num2 >= _length)
1144 {
1145 break;
1146 }
1147 _digits[num2 - 1] |= _digits[num2] << 32 - cbit;
1148 }
1149 if (_digits[num2 - 1] == 0)
1150 {
1151 _length--;
1152 }
1153 }

References System.Xml.Xsl.XPathConvert.BigInteger._digits, System.Xml.Xsl.XPathConvert.BigInteger._length, System.Xml.Dictionary, and System.Xml.Xsl.XPathConvert.BigInteger.ShiftUsRight().