C# Class System.Numerics.BigIntegerBuilder

Show file Open project: hprose/hprose-dotnet Class Usage Examples

Private Properties

Property Type Description
AddCarry uint
AddMulCarry uint
ApplyBorrow void
ApplyCarry void
GetHigh2 ulong
GetIntegerParts void
LehmerGcd void
ModDivCore void
MulCarry uint
Resize void
SetSizeClear void
SetSizeKeep void
SetSizeLazy void
SubBorrow uint
SubRev void
SubRevBorrow uint
Trim void

Public Methods

Method Description
Add ( BigIntegerBuilder &reg ) : void
Add ( uint u ) : void
BigIntegerBuilder ( System.Numerics.BigInteger bn ) : System
BigIntegerBuilder ( System.Numerics.BigInteger bn, int &sign ) : System
BigIntegerBuilder ( BigIntegerBuilder &reg ) : System
BigIntegerBuilder ( int cuAlloc ) : System
CbitLowZero ( ) : int
Div ( BigIntegerBuilder &regDen ) : void
DivMod ( uint uDen ) : uint
EnsureWritable ( ) : void
EnsureWritable ( int cuExtra ) : void
EnsureWritable ( int cu, int cuExtra ) : void
GCD ( BigIntegerBuilder &reg1, BigIntegerBuilder &reg2 ) : void
GetApproxParts ( int &exp, ulong &man ) : void
GetInteger ( int sign ) : System.Numerics.BigInteger
Load ( BigIntegerBuilder &reg ) : void
Load ( BigIntegerBuilder &reg, int cuExtra ) : void
MakeOdd ( ) : int
Mod ( BigIntegerBuilder &regNum, uint uDen ) : uint
Mod ( BigIntegerBuilder &regDen ) : void
ModDiv ( BigIntegerBuilder &regDen, BigIntegerBuilder &regQuo ) : void
Mul ( BigIntegerBuilder &regMul ) : void
Mul ( BigIntegerBuilder &reg1, BigIntegerBuilder &reg2 ) : void
Mul ( uint u ) : void
Set ( uint u ) : void
Set ( ulong uu ) : void
ShiftLeft ( int cbit ) : void
ShiftLeft ( int cuShift, int cbitShift ) : void
ShiftRight ( int cbit ) : void
ShiftRight ( int cuShift, int cbitShift ) : void
Sub ( int &sign, BigIntegerBuilder &reg ) : void
Sub ( int &sign, uint u ) : void

Private Methods

Method Description
AddCarry ( uint &u1, uint u2, uint uCarry ) : uint
AddMulCarry ( uint &uAdd, uint uMul1, uint uMul2, uint uCarry ) : uint
ApplyBorrow ( int iuMin ) : void
ApplyCarry ( int iu ) : void
GetHigh2 ( int cu ) : ulong
GetIntegerParts ( int signSrc, int &sign, uint &bits ) : void
LehmerGcd ( BigIntegerBuilder &reg1, BigIntegerBuilder &reg2 ) : void
ModDivCore ( BigIntegerBuilder &regNum, BigIntegerBuilder &regDen, bool fQuo, BigIntegerBuilder &regQuo ) : void
MulCarry ( uint &u1, uint u2, uint uCarry ) : uint
Resize ( uint &array, int newSize ) : void
SetSizeClear ( int cu ) : void
SetSizeKeep ( int cu, int cuExtra ) : void
SetSizeLazy ( int cu ) : void
SubBorrow ( uint &u1, uint u2, uint uBorrow ) : uint
SubRev ( BigIntegerBuilder &reg ) : void
SubRevBorrow ( uint &u1, uint u2, uint uBorrow ) : uint
Trim ( ) : void

Method Details

Add() public method

public Add ( BigIntegerBuilder &reg ) : void
reg BigIntegerBuilder
return void

Add() public method

public Add ( uint u ) : void
u uint
return void

BigIntegerBuilder() public method

public BigIntegerBuilder ( System.Numerics.BigInteger bn ) : System
bn System.Numerics.BigInteger
return System

BigIntegerBuilder() public method

public BigIntegerBuilder ( System.Numerics.BigInteger bn, int &sign ) : System
bn System.Numerics.BigInteger
sign int
return System

BigIntegerBuilder() public method

public BigIntegerBuilder ( BigIntegerBuilder &reg ) : System
reg BigIntegerBuilder
return System

BigIntegerBuilder() public method

public BigIntegerBuilder ( int cuAlloc ) : System
cuAlloc int
return System

CbitLowZero() public method

public CbitLowZero ( ) : int
return int

Div() public method

public Div ( BigIntegerBuilder &regDen ) : void
regDen BigIntegerBuilder
return void

DivMod() public method

public DivMod ( uint uDen ) : uint
uDen uint
return uint

EnsureWritable() public method

public EnsureWritable ( ) : void
return void

EnsureWritable() public method

public EnsureWritable ( int cuExtra ) : void
cuExtra int
return void

EnsureWritable() public method

public EnsureWritable ( int cu, int cuExtra ) : void
cu int
cuExtra int
return void

GCD() public static method

public static GCD ( BigIntegerBuilder &reg1, BigIntegerBuilder &reg2 ) : void
reg1 BigIntegerBuilder
reg2 BigIntegerBuilder
return void

GetApproxParts() public method

public GetApproxParts ( int &exp, ulong &man ) : void
exp int
man ulong
return void

GetInteger() public method

public GetInteger ( int sign ) : System.Numerics.BigInteger
sign int
return System.Numerics.BigInteger

Load() public method

public Load ( BigIntegerBuilder &reg ) : void
reg BigIntegerBuilder
return void

Load() public method

public Load ( BigIntegerBuilder &reg, int cuExtra ) : void
reg BigIntegerBuilder
cuExtra int
return void

MakeOdd() public method

public MakeOdd ( ) : int
return int

Mod() public static method

public static Mod ( BigIntegerBuilder &regNum, uint uDen ) : uint
regNum BigIntegerBuilder
uDen uint
return uint

Mod() public method

public Mod ( BigIntegerBuilder &regDen ) : void
regDen BigIntegerBuilder
return void

ModDiv() public method

public ModDiv ( BigIntegerBuilder &regDen, BigIntegerBuilder &regQuo ) : void
regDen BigIntegerBuilder
regQuo BigIntegerBuilder
return void

Mul() public method

public Mul ( BigIntegerBuilder &regMul ) : void
regMul BigIntegerBuilder
return void

Mul() public method

public Mul ( BigIntegerBuilder &reg1, BigIntegerBuilder &reg2 ) : void
reg1 BigIntegerBuilder
reg2 BigIntegerBuilder
return void

Mul() public method

public Mul ( uint u ) : void
u uint
return void

Set() public method

public Set ( uint u ) : void
u uint
return void

Set() public method

public Set ( ulong uu ) : void
uu ulong
return void

ShiftLeft() public method

public ShiftLeft ( int cbit ) : void
cbit int
return void

ShiftLeft() public method

public ShiftLeft ( int cuShift, int cbitShift ) : void
cuShift int
cbitShift int
return void

ShiftRight() public method

public ShiftRight ( int cbit ) : void
cbit int
return void

ShiftRight() public method

public ShiftRight ( int cuShift, int cbitShift ) : void
cuShift int
cbitShift int
return void

Sub() public method

public Sub ( int &sign, BigIntegerBuilder &reg ) : void
sign int
reg BigIntegerBuilder
return void

Sub() public method

public Sub ( int &sign, uint u ) : void
sign int
u uint
return void