Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
PowCore()
[6/10]
static void System.Numerics.BigIntegerCalculator.PowCore
(
uint
power
,
uint[]
modulus
,
ref
BitsBuffer
value
,
ref
BitsBuffer
result
,
ref
BitsBuffer
temp
)
inline
static
private
Definition at line
1069
of file
BigIntegerCalculator.cs
.
1070
{
1071
while
(power != 0)
1072
{
1073
if
((power & 1) == 1)
1074
{
1075
result.MultiplySelf(ref
value
, ref temp);
1076
result.Reduce(modulus);
1077
}
1078
if
(power != 1)
1079
{
1080
value
.SquareSelf(ref temp);
1081
value
.Reduce(modulus);
1082
}
1083
power >>= 1;
1084
}
1085
}
System.ExceptionArgument.value
@ value
References
System.value
.
System
Numerics
BigIntegerCalculator
Generated by
1.10.0