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

◆ PowCore() [5/10]

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

Definition at line 1032 of file BigIntegerCalculator.cs.

1033 {
1034 int size = value.GetSize();
1035 BitsBuffer temp = new BitsBuffer(size, 0u);
1036 BitsBuffer result = new BitsBuffer(size, 1u);
1037 if (modulus.Length < ReducerThreshold)
1038 {
1039 PowCore(power, modulus, ref value, ref result, ref temp);
1040 }
1041 else
1042 {
1043 FastReducer reducer = new FastReducer(modulus);
1044 PowCore(power, ref reducer, ref value, ref result, ref temp);
1045 }
1046 return result.GetBits();
1047 }
static uint[] PowCore(uint power, ref BitsBuffer value)

References System.Numerics.BigIntegerCalculator.BitsBuffer.GetBits(), System.Numerics.BigIntegerCalculator.PowCore(), System.Numerics.BigIntegerCalculator.ReducerThreshold, and System.value.