Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Numerics.BigIntegerCalculator Class Reference

Classes

struct  BitsBuffer
 
struct  FastReducer
 

Static Public Member Functions

static uint[] Add (uint[] left, uint right)
 
static unsafe uint[] Add (uint[] left, uint[] right)
 
static uint[] Subtract (uint[] left, uint right)
 
static unsafe uint[] Subtract (uint[] left, uint[] right)
 
static int Compare (uint[] left, uint[] right)
 
static uint[] Divide (uint[] left, uint right, out uint remainder)
 
static uint[] Divide (uint[] left, uint right)
 
static uint Remainder (uint[] left, uint right)
 
static unsafe uint[] Divide (uint[] left, uint[] right, out uint[] remainder)
 
static unsafe uint[] Divide (uint[] left, uint[] right)
 
static unsafe uint[] Remainder (uint[] left, uint[] right)
 
static uint Gcd (uint left, uint right)
 
static ulong Gcd (ulong left, ulong right)
 
static uint Gcd (uint[] left, uint right)
 
static uint[] Gcd (uint[] left, uint[] right)
 
static uint[] Pow (uint value, uint power)
 
static uint[] Pow (uint[] value, uint power)
 
static uint Pow (uint value, uint power, uint modulus)
 
static uint Pow (uint[] value, uint power, uint modulus)
 
static uint Pow (uint value, uint[] power, uint modulus)
 
static uint Pow (uint[] value, uint[] power, uint modulus)
 
static uint[] Pow (uint value, uint power, uint[] modulus)
 
static uint[] Pow (uint[] value, uint power, uint[] modulus)
 
static uint[] Pow (uint value, uint[] power, uint[] modulus)
 
static uint[] Pow (uint[] value, uint[] power, uint[] modulus)
 
static unsafe uint[] Square (uint[] value)
 
static uint[] Multiply (uint[] left, uint right)
 
static unsafe uint[] Multiply (uint[] left, uint[] right)
 

Static Private Member Functions

static unsafe void Add (uint *left, int leftLength, uint *right, int rightLength, uint *bits, int bitsLength)
 
static unsafe void AddSelf (uint *left, int leftLength, uint *right, int rightLength)
 
static unsafe void Subtract (uint *left, int leftLength, uint *right, int rightLength, uint *bits, int bitsLength)
 
static unsafe void SubtractSelf (uint *left, int leftLength, uint *right, int rightLength)
 
static unsafe int Compare (uint *left, int leftLength, uint *right, int rightLength)
 
static unsafe void Divide (uint *left, int leftLength, uint *right, int rightLength, uint *bits, int bitsLength)
 
static unsafe uint AddDivisor (uint *left, int leftLength, uint *right, int rightLength)
 
static unsafe uint SubtractDivisor (uint *left, int leftLength, uint *right, int rightLength, ulong q)
 
static bool DivideGuessTooBig (ulong q, ulong valHi, uint valLo, uint divHi, uint divLo)
 
static int LeadingZeros (uint value)
 
static void Gcd (ref BitsBuffer left, ref BitsBuffer right)
 
static void ExtractDigits (ref BitsBuffer xBuffer, ref BitsBuffer yBuffer, out ulong x, out ulong y)
 
static void LehmerCore (ref BitsBuffer xBuffer, ref BitsBuffer yBuffer, long a, long b, long c, long d)
 
static uint[] PowCore (uint power, ref BitsBuffer value)
 
static int PowBound (uint power, int valueLength, int resultLength)
 
static void PowCore (uint power, ref BitsBuffer value, ref BitsBuffer result, ref BitsBuffer temp)
 
static uint PowCore (uint[] power, uint modulus, ulong value, ulong result)
 
static uint PowCore (uint power, uint modulus, ulong value, ulong result)
 
static uint[] PowCore (uint[] power, uint[] modulus, ref BitsBuffer value)
 
static uint[] PowCore (uint power, uint[] modulus, ref BitsBuffer value)
 
static void PowCore (uint[] power, uint[] modulus, ref BitsBuffer value, ref BitsBuffer result, ref BitsBuffer temp)
 
static void PowCore (uint power, uint[] modulus, ref BitsBuffer value, ref BitsBuffer result, ref BitsBuffer temp)
 
static void PowCore (uint[] power, ref FastReducer reducer, ref BitsBuffer value, ref BitsBuffer result, ref BitsBuffer temp)
 
static void PowCore (uint power, ref FastReducer reducer, ref BitsBuffer value, ref BitsBuffer result, ref BitsBuffer temp)
 
static int ActualLength (uint[] value)
 
static int ActualLength (uint[] value, int length)
 
static unsafe void Square (uint *value, int valueLength, uint *bits, int bitsLength)
 
static unsafe void Multiply (uint *left, int leftLength, uint *right, int rightLength, uint *bits, int bitsLength)
 
static unsafe void SubtractCore (uint *left, int leftLength, uint *right, int rightLength, uint *core, int coreLength)
 

Static Private Attributes

static int ReducerThreshold = 32
 
static int SquareThreshold = 32
 
static int AllocationThreshold = 256
 
static int MultiplyThreshold = 32
 

Detailed Description

Definition at line 3 of file BigIntegerCalculator.cs.


The documentation for this class was generated from the following file: