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

◆ PowCore() [4/10]

static uint System.Numerics.BigIntegerCalculator.PowCore ( uint power,
uint modulus,
ulong value,
ulong result )
inlinestaticprivate

Definition at line 962 of file BigIntegerCalculator.cs.

963 {
964 while (power != 0)
965 {
966 if ((power & 1) == 1)
967 {
968 result = result * value % modulus;
969 }
970 if (power != 1)
971 {
972 value = value * value % modulus;
973 }
974 power >>= 1;
975 }
976 return (uint)(result % modulus);
977 }

References System.value.