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

◆ PowCore() [9/10]

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

Definition at line 1015 of file BigIntegerCalculator.cs.

1016 {
1017 int size = value.GetSize();
1018 BitsBuffer temp = new BitsBuffer(size, 0u);
1019 BitsBuffer result = new BitsBuffer(size, 1u);
1020 if (modulus.Length < ReducerThreshold)
1021 {
1022 PowCore(power, modulus, ref value, ref result, ref temp);
1023 }
1024 else
1025 {
1026 FastReducer reducer = new FastReducer(modulus);
1027 PowCore(power, ref reducer, ref value, ref result, ref temp);
1028 }
1029 return result.GetBits();
1030 }
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.