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

◆ PowBound()

static int System.Numerics.BigIntegerCalculator.PowBound ( uint power,
int valueLength,
int resultLength )
inlinestaticprivate

Definition at line 886 of file BigIntegerCalculator.cs.

887 {
888 checked
889 {
890 while (power != 0)
891 {
892 if ((power & 1) == 1)
893 {
894 resultLength += valueLength;
895 }
896 if (power != 1)
897 {
898 valueLength += valueLength;
899 }
900 power >>= 1;
901 }
902 return resultLength;
903 }
904 }

Referenced by System.Numerics.BigIntegerCalculator.Pow(), and System.Numerics.BigIntegerCalculator.Pow().