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

◆ PowCore() [8/10]

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

Definition at line 944 of file BigIntegerCalculator.cs.

945 {
946 for (int i = 0; i < power.Length - 1; i++)
947 {
948 uint num = power[i];
949 for (int j = 0; j < 32; j++)
950 {
951 if ((num & 1) == 1)
952 {
953 result = result * value % modulus;
954 }
955 value = value * value % modulus;
956 num >>= 1;
957 }
958 }
959 return PowCore(power[^1], modulus, value, result);
960 }
static uint[] PowCore(uint power, ref BitsBuffer value)

References System.Numerics.BigIntegerCalculator.PowCore(), and System.value.