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

◆ MultiplySelf()

unsafe void System.Numerics.BigIntegerCalculator.BitsBuffer.MultiplySelf ( ref BitsBuffer value,
ref BitsBuffer temp )
inline

Definition at line 25 of file BigIntegerCalculator.cs.

26 {
27 fixed (uint* ptr2 = _bits)
28 {
29 fixed (uint* ptr = value._bits)
30 {
31 fixed (uint* bits = temp._bits)
32 {
33 if (_length < value._length)
34 {
35 Multiply(ptr, value._length, ptr2, _length, bits, _length + value._length);
36 }
37 else
38 {
39 Multiply(ptr2, _length, ptr, value._length, bits, _length + value._length);
40 }
41 }
42 }
43 }
44 Apply(ref temp, _length + value._length);
45 }
void Apply(ref BitsBuffer temp, int maxLength)

References System.Numerics.BigIntegerCalculator.BitsBuffer._bits, System.Numerics.BigIntegerCalculator.BitsBuffer._length, System.Numerics.BigIntegerCalculator.BitsBuffer.Apply(), System.Multiply, and System.value.