Documentation ¶
Overview ¶
Package m64 provides a 64-bit arithmetic evaluator.
Index ¶
- type Evaluator
- type Processor
- func (p *Processor) ADD(x, y, cin eval.Value) (sum, cout eval.Value)
- func (Processor) Bits() uint
- func (Processor) Const(x uint64, n uint) eval.Value
- func (p *Processor) Errors() []error
- func (p *Processor) ITE(l, r, x, y eval.Value) eval.Value
- func (p *Processor) MUL(x, y eval.Value) (hi, lo eval.Value)
- func (p *Processor) SHL(x eval.Value, s uint) eval.Value
- func (p *Processor) SHR(x eval.Value, s uint) eval.Value
- func (p *Processor) SUB(x, y, bin eval.Value) (diff, bout eval.Value)
- type Word
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator for arithmetic programs with 64-bit limbs.
func NewEvaluator ¶
func NewEvaluator() *Evaluator
func (*Evaluator) Int ¶
Int returns the integer represented by the 64-bit limbs in the given registers.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor is a 64-bit arithmetic evaluator.
Click to show internal directories.
Click to hide internal directories.