Documentation ¶
Index ¶
- func ConditionalMove(ctx *build.Context, y, x Int, c operand.Op)
- func Copy(ctx *build.Context, y, x Int)
- func Mul(ctx *build.Context, z, x, y Int)
- func Sqr(ctx *build.Context, z, x Int)
- type Int
- func AllocLocal(ctx *build.Context, k int) Int
- func CopyIntoRegisters(ctx *build.Context, x Int) Int
- func Imm(c *big.Int, k int) (Int, error)
- func ImmUint(c uint, k int) (Int, error)
- func NewInt(k int) Int
- func NewIntFromMem(m operand.Mem, k int) Int
- func NewIntLimb64(ctx *build.Context, k int) Int
- func NewIntZero(k int) Int
- func Param(ctx *build.Context, name string, k int) Int
- func StaticGlobal(ctx *build.Context, name string, limbs []uint64) Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConditionalMove ¶
ConditionalMove copies x into y if c ≡ 1.
Types ¶
type Int ¶
Int represents a multi-precision integer.
func AllocLocal ¶
AllocLocal allocates an integer with k 64-bit limbs on the stack of the currently active function.
func CopyIntoRegisters ¶
CopyIntoRegisters will copy x into registers.
func ImmUint ¶
ImmUint returns an integer representing the unsigned integer constant c with k 64-bit limbs.
func NewIntFromMem ¶
NewIntFromMem builds a multi-precision integer referencing the k 64-bit limbs at memory address m.
func NewIntLimb64 ¶
NewIntLimb64 builds multi-precision integer with k 64-bit limbs.
func NewIntZero ¶
NewIntZero builds an integer with all k limbs set to the immediate value 0.
func Param ¶
Param builds a multi-precision integer from a function parameter. The parameter is expected to be a pointer to the start of the integer.
func StaticGlobal ¶
StaticGlobal returns a multi-precision integer stored in a static global data section.