terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
System.Decimal.DecCalc Struct Reference
+ Collaboration diagram for System.Decimal.DecCalc:

Classes

struct  Buf12
 
struct  Buf16
 
struct  Buf24
 
struct  PowerOvfl
 

Static Public Member Functions

static DecCalc ()
 

Package Types

enum  RoundingMode {
  ToEven , AwayFromZero , Truncate , Floor ,
  Ceiling
}
 

Static Package Functions

static unsafe void DecAddSub (ref decimal.DecCalc d1, ref decimal.DecCalc d2, bool sign)
 
static int VarDecCmp (in decimal d1, in decimal d2)
 
static unsafe void VarDecMul (ref decimal.DecCalc d1, ref decimal.DecCalc d2)
 
static void VarDecFromR4 (float input, out decimal.DecCalc result)
 
static void VarDecFromR8 (double input, out decimal.DecCalc result)
 
static float VarR4FromDec (in decimal value)
 
static double VarR8FromDec (in decimal value)
 
static int GetHashCode (in decimal d)
 
static void VarDecDiv (ref decimal.DecCalc d1, ref decimal.DecCalc d2)
 
static void InternalRound (ref decimal.DecCalc d, uint scale, decimal.DecCalc.RoundingMode mode)
 
static uint DecDivMod1E9 (ref decimal.DecCalc value)
 

Properties

uint High [get, set]
 
uint Low [get, set]
 
uint Mid [get, set]
 
bool IsNegative [get, set]
 
ulong Low64 [get, set]
 

Static Private Member Functions

static uint GetExponent (float f)
 
static uint GetExponent (double d)
 
static ulong UInt32x32To64 (uint a, uint b)
 
static void UInt64x64To128 (ulong a, ulong b, ref decimal.DecCalc result)
 
static uint Div96By32 (ref decimal.DecCalc.Buf12 bufNum, uint den)
 
static bool Div96ByConst (ref ulong high64, ref uint low, uint pow)
 
static void Unscale (ref uint low, ref ulong high64, ref int scale)
 
static uint Div96By64 (ref decimal.DecCalc.Buf12 bufNum, ulong den)
 
static uint Div128By96 (ref decimal.DecCalc.Buf16 bufNum, ref decimal.DecCalc.Buf12 bufDen)
 
static uint IncreaseScale (ref decimal.DecCalc.Buf12 bufNum, uint power)
 
static void IncreaseScale64 (ref decimal.DecCalc.Buf12 bufNum, uint power)
 
static unsafe int ScaleResult (decimal.DecCalc.Buf24 *bufRes, uint hiRes, int scale)
 
static unsafe uint DivByConst (uint *result, uint hiRes, out uint quotient, out uint remainder, uint power)
 
static int LeadingZeroCount (uint value)
 
static int OverflowUnscale (ref decimal.DecCalc.Buf12 bufQuo, int scale, bool sticky)
 
static int SearchScale (ref decimal.DecCalc.Buf12 bufQuo, int scale)
 
static bool Add32To96 (ref decimal.DecCalc.Buf12 bufNum, uint value)
 
static int VarDecCmpSub (in decimal d1, in decimal d2)
 

Private Attributes

uint uflags
 
uint uhi
 
uint ulo
 
uint umid
 
ulong ulomidLE
 

Static Private Attributes

static readonly uint[] s_powers10
 
static readonly ulong[] s_ulongPowers10
 
static readonly double[] s_doublePowers10
 
static readonly decimal.DecCalc.PowerOvfl[] PowerOvflValues
 

Detailed Description

Definition at line 1571 of file Decimal.cs.


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