math

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABS

func ABS() *helpers.SimpleOP

func ADDCONST

func ADDCONST(value int8) (op *helpers.AdvancedOP)

func ADDDIVMOD

func ADDDIVMOD() *helpers.SimpleOP

func ADDDIVMODC

func ADDDIVMODC() *helpers.SimpleOP

func ADDDIVMODR

func ADDDIVMODR() *helpers.SimpleOP

func ADDINT

func ADDINT(value int8) *helpers.AdvancedOP

func ADDRSHIFTCCODEMOD

func ADDRSHIFTCCODEMOD(value int8) *helpers.AdvancedOP

func ADDRSHIFTCODEMOD

func ADDRSHIFTCODEMOD(value int8) *helpers.AdvancedOP

func ADDRSHIFTMOD

func ADDRSHIFTMOD() *helpers.SimpleOP

func ADDRSHIFTMODC

func ADDRSHIFTMODC() *helpers.SimpleOP

func ADDRSHIFTMODR

func ADDRSHIFTMODR() *helpers.SimpleOP

func ADDRSHIFTRCODEMOD

func ADDRSHIFTRCODEMOD(value int8) *helpers.AdvancedOP

func AND

func AND() *helpers.SimpleOP

func BITSIZE

func BITSIZE() *helpers.SimpleOP

func CHKNAN

func CHKNAN() *helpers.SimpleOP

func CMP

func CMP() *helpers.SimpleOP

func DEC

func DEC() *helpers.SimpleOP

func DIV

func DIV() *helpers.SimpleOP

func DIVC

func DIVC() *helpers.SimpleOP

func DIVMOD

func DIVMOD() *helpers.SimpleOP

func DIVMODC

func DIVMODC() *helpers.SimpleOP

func DIVMODR

func DIVMODR() *helpers.SimpleOP

func DIVR

func DIVR() *helpers.SimpleOP

func EQUAL

func EQUAL() *helpers.SimpleOP

func FITS

func FITS(bits uint8) *helpers.AdvancedOP

func FITSX

func FITSX() *helpers.SimpleOP

func GEQ

func GEQ() *helpers.SimpleOP

func GREATER

func GREATER() *helpers.SimpleOP

func INC

func INC() *helpers.SimpleOP

func ISNAN

func ISNAN() *helpers.SimpleOP

func ISNEG

func ISNEG() *helpers.SimpleOP

func ISNNEG

func ISNNEG() *helpers.SimpleOP

func ISNPOS

func ISNPOS() *helpers.SimpleOP

func ISPOS

func ISPOS() *helpers.SimpleOP

func ISZERO

func ISZERO() *helpers.SimpleOP

func LEQ

func LEQ() *helpers.SimpleOP

func LESS

func LESS() *helpers.SimpleOP

func LSHIFT

func LSHIFT() *helpers.SimpleOP

func LSHIFTADDDIVMOD

func LSHIFTADDDIVMOD() *helpers.SimpleOP

func LSHIFTADDDIVMODC

func LSHIFTADDDIVMODC() *helpers.SimpleOP

func LSHIFTADDDIVMODR

func LSHIFTADDDIVMODR() *helpers.SimpleOP

func LSHIFTCODE

func LSHIFTCODE(value int8) (op *helpers.AdvancedOP)

func LSHIFTDIV

func LSHIFTDIV() *helpers.SimpleOP

func LSHIFTDIVC

func LSHIFTDIVC() *helpers.SimpleOP

func LSHIFTDIVMOD

func LSHIFTDIVMOD() *helpers.SimpleOP

func LSHIFTDIVMODC

func LSHIFTDIVMODC() *helpers.SimpleOP

func LSHIFTDIVMODR

func LSHIFTDIVMODR() *helpers.SimpleOP

func LSHIFTDIVR

func LSHIFTDIVR() *helpers.SimpleOP

func LSHIFTMOD

func LSHIFTMOD() *helpers.SimpleOP

func LSHIFTMODC

func LSHIFTMODC() *helpers.SimpleOP

func LSHIFTMODR

func LSHIFTMODR() *helpers.SimpleOP

func MAX

func MAX() *helpers.SimpleOP

func MIN

func MIN() *helpers.SimpleOP

func MINMAX

func MINMAX() *helpers.SimpleOP

func MOD

func MOD() *helpers.SimpleOP

func MODC

func MODC() *helpers.SimpleOP

func MODPOW2

func MODPOW2() *helpers.SimpleOP

func MODPOW2C

func MODPOW2C() *helpers.SimpleOP

func MODPOW2CCODE

func MODPOW2CCODE(value int8) (op *helpers.AdvancedOP)

func MODPOW2CODE

func MODPOW2CODE(value int8) (op *helpers.AdvancedOP)

func MODPOW2R

func MODPOW2R() *helpers.SimpleOP

func MODPOW2RCODE

func MODPOW2RCODE(value int8) (op *helpers.AdvancedOP)

func MODR

func MODR() *helpers.SimpleOP

func MUL

func MUL() *helpers.SimpleOP

func MULADDDIVMOD

func MULADDDIVMOD() *helpers.SimpleOP

func MULADDDIVMODC

func MULADDDIVMODC() *helpers.SimpleOP

func MULADDDIVMODR

func MULADDDIVMODR() *helpers.SimpleOP

func MULADDRSHIFTCCODEMOD

func MULADDRSHIFTCCODEMOD(value int8) (op *helpers.AdvancedOP)

func MULADDRSHIFTCMOD

func MULADDRSHIFTCMOD() *helpers.SimpleOP

func MULADDRSHIFTCODEMOD

func MULADDRSHIFTCODEMOD(value int8) (op *helpers.AdvancedOP)

func MULADDRSHIFTMOD

func MULADDRSHIFTMOD() *helpers.SimpleOP

func MULADDRSHIFTRCODEMOD

func MULADDRSHIFTRCODEMOD(value int8) (op *helpers.AdvancedOP)

func MULADDRSHIFTRMOD

func MULADDRSHIFTRMOD() *helpers.SimpleOP

func MULCONST

func MULCONST(value int8) (op *helpers.AdvancedOP)

func MULDIV

func MULDIV() *helpers.SimpleOP

func MULDIVC

func MULDIVC() *helpers.SimpleOP

func MULDIVMOD

func MULDIVMOD() *helpers.SimpleOP

func MULDIVMODC

func MULDIVMODC() *helpers.SimpleOP

func MULDIVMODR

func MULDIVMODR() *helpers.SimpleOP

func MULDIVR

func MULDIVR() *helpers.SimpleOP

func MULINT

func MULINT(value int8) *helpers.AdvancedOP

func MULMOD

func MULMOD() *helpers.SimpleOP

func MULMODC

func MULMODC() *helpers.SimpleOP

func MULMODPOW2CCODE

func MULMODPOW2CCODE(value int8) (op *helpers.AdvancedOP)

func MULMODPOW2CODE

func MULMODPOW2CODE(value int8) (op *helpers.AdvancedOP)

func MULMODPOW2C_VAR

func MULMODPOW2C_VAR() *helpers.SimpleOP

func MULMODPOW2RCODE

func MULMODPOW2RCODE(value int8) (op *helpers.AdvancedOP)

func MULMODPOW2R_VAR

func MULMODPOW2R_VAR() *helpers.SimpleOP

func MULMODPOW2_VAR

func MULMODPOW2_VAR() *helpers.SimpleOP

func MULMODR

func MULMODR() *helpers.SimpleOP

func MULRSHIFT

func MULRSHIFT() *helpers.SimpleOP

func MULRSHIFTC

func MULRSHIFTC() *helpers.SimpleOP

func MULRSHIFTCCODE

func MULRSHIFTCCODE(value int8) (op *helpers.AdvancedOP)

func MULRSHIFTCCODEMOD

func MULRSHIFTCCODEMOD(value int8) (op *helpers.AdvancedOP)

func MULRSHIFTCMOD_VAR

func MULRSHIFTCMOD_VAR() *helpers.SimpleOP

func MULRSHIFTCODE

func MULRSHIFTCODE(value int8) (op *helpers.AdvancedOP)

func MULRSHIFTCODEMOD

func MULRSHIFTCODEMOD(value int8) (op *helpers.AdvancedOP)

func MULRSHIFTMOD_VAR

func MULRSHIFTMOD_VAR() *helpers.SimpleOP

func MULRSHIFTR

func MULRSHIFTR() *helpers.SimpleOP

func MULRSHIFTRCODE

func MULRSHIFTRCODE(value int8) (op *helpers.AdvancedOP)

func MULRSHIFTRCODEMOD

func MULRSHIFTRCODEMOD(value int8) (op *helpers.AdvancedOP)

func MULRSHIFTRMOD_VAR

func MULRSHIFTRMOD_VAR() *helpers.SimpleOP

func NEGATE

func NEGATE() *helpers.SimpleOP

func NEQ

func NEQ() *helpers.SimpleOP

func NOT

func NOT() *helpers.SimpleOP

func OR

func OR() *helpers.SimpleOP

func POW2

func POW2() *helpers.SimpleOP

func PUSHNAN

func PUSHNAN() *helpers.SimpleOP

func PUSHNEGPOW2

func PUSHNEGPOW2(value uint8) *helpers.AdvancedOP

func PUSHPOW2

func PUSHPOW2(value uint8) *helpers.AdvancedOP

func PUSHPOW2DEC

func PUSHPOW2DEC(value uint8) *helpers.AdvancedOP

func QABS

func QABS() *helpers.SimpleOP

func QADD

func QADD() *helpers.SimpleOP

func QADDINT

func QADDINT(value int8) *helpers.AdvancedOP

func QAND

func QAND() *helpers.SimpleOP

func QBITSIZE

func QBITSIZE() *helpers.SimpleOP

func QCMP

func QCMP() *helpers.SimpleOP

func QDEC

func QDEC() *helpers.SimpleOP

func QEQINT

func QEQINT(value int8) *helpers.AdvancedOP

func QEQUAL

func QEQUAL() *helpers.SimpleOP

func QFITS

func QFITS(bits uint8) *helpers.AdvancedOP

func QFITSX

func QFITSX() *helpers.SimpleOP

func QGEQ

func QGEQ() *helpers.SimpleOP

func QGREATER

func QGREATER() *helpers.SimpleOP

func QGTINT

func QGTINT(value int8) *helpers.AdvancedOP

func QINC

func QINC() *helpers.SimpleOP

func QLEQ

func QLEQ() *helpers.SimpleOP

func QLESS

func QLESS() *helpers.SimpleOP

func QLESSINT

func QLESSINT(value int8) *helpers.AdvancedOP

func QLSHIFT

func QLSHIFT() *helpers.SimpleOP

func QLSHIFTCODE

func QLSHIFTCODE(value int8) *helpers.AdvancedOP

func QMAX

func QMAX() *helpers.SimpleOP

func QMIN

func QMIN() *helpers.SimpleOP

func QMINMAX

func QMINMAX() *helpers.SimpleOP

func QMUL

func QMUL() *helpers.SimpleOP

func QMULINT

func QMULINT(value int8) *helpers.AdvancedOP

func QNEGATE

func QNEGATE() *helpers.SimpleOP

func QNEQ

func QNEQ() *helpers.SimpleOP

func QNEQINT

func QNEQINT(value int8) *helpers.AdvancedOP

func QNOT

func QNOT() *helpers.SimpleOP

func QOR

func QOR() *helpers.SimpleOP

func QPOW2

func QPOW2() *helpers.SimpleOP

func QRSHIFT

func QRSHIFT() *helpers.SimpleOP

func QRSHIFTCODE

func QRSHIFTCODE(value int8) *helpers.AdvancedOP

func QSGN

func QSGN() *helpers.SimpleOP

func QSUB

func QSUB() *helpers.SimpleOP

func QSUBR

func QSUBR() *helpers.SimpleOP

func QUBITSIZE

func QUBITSIZE() *helpers.SimpleOP

func QUFITS

func QUFITS(bits uint8) *helpers.AdvancedOP

func QUFITSX

func QUFITSX() *helpers.SimpleOP

func QXOR

func QXOR() *helpers.SimpleOP

func RSHIFT

func RSHIFT() *helpers.SimpleOP

func RSHIFTC

func RSHIFTC() *helpers.SimpleOP

func RSHIFTCCODE

func RSHIFTCCODE(value int8) (op *helpers.AdvancedOP)

func RSHIFTCCODEMOD

func RSHIFTCCODEMOD(value int8) (op *helpers.AdvancedOP)

func RSHIFTCODE

func RSHIFTCODE(value int8) (op *helpers.AdvancedOP)

func RSHIFTCODEFLOOR

func RSHIFTCODEFLOOR(value int8) *helpers.AdvancedOP

func RSHIFTCODEMOD

func RSHIFTCODEMOD(value int8) (op *helpers.AdvancedOP)

func RSHIFTFLOOR

func RSHIFTFLOOR() *helpers.SimpleOP

func RSHIFTMOD

func RSHIFTMOD() *helpers.SimpleOP

func RSHIFTMODC

func RSHIFTMODC() *helpers.SimpleOP

func RSHIFTMODR

func RSHIFTMODR() *helpers.SimpleOP

func RSHIFTR

func RSHIFTR() *helpers.SimpleOP

func RSHIFTRCODE

func RSHIFTRCODE(value int8) (op *helpers.AdvancedOP)

func RSHIFTRCODEMOD

func RSHIFTRCODEMOD(value int8) (op *helpers.AdvancedOP)

func SGN

func SGN() *helpers.SimpleOP

func SUB

func SUB() *helpers.SimpleOP

func SUBR

func SUBR() *helpers.SimpleOP

func SUM

func SUM() *helpers.SimpleOP

func UBITSIZE

func UBITSIZE() *helpers.SimpleOP

func UFITS

func UFITS(bits uint8) *helpers.AdvancedOP

func UFITSX

func UFITSX() *helpers.SimpleOP

func XOR

func XOR() *helpers.SimpleOP

Types

type OpIntCmp added in v1.18.0

type OpIntCmp struct {
	// contains filtered or unexported fields
}

OpIntCmp is the struct-based form of the <int8-argument> comparison opcodes (LESSINT/EQINT/GTINT/NEQINT): one allocation per executed instruction instead of an AdvancedOP carrying per-instance closures. When fixed is set, the instance covers a single full 16-bit opcode with a baked-in value, its Deserialize does not mutate the op, so it is shared via the dispatch table.

func EQINT

func EQINT(value int8) *OpIntCmp

func GTINT

func GTINT(value int8) *OpIntCmp

func LESSINT

func LESSINT(value int8) *OpIntCmp

func NEQINT

func NEQINT(value int8) *OpIntCmp

func (*OpIntCmp) Deserialize added in v1.18.0

func (op *OpIntCmp) Deserialize(code *cell.Slice) error

func (*OpIntCmp) GetPrefixes added in v1.18.0

func (op *OpIntCmp) GetPrefixes() []*cell.Slice

func (*OpIntCmp) InstructionBits added in v1.18.0

func (op *OpIntCmp) InstructionBits() int64

func (*OpIntCmp) Interpret added in v1.18.0

func (op *OpIntCmp) Interpret(state *vm.State) error

func (*OpIntCmp) Reusable added in v1.18.0

func (op *OpIntCmp) Reusable() bool

func (*OpIntCmp) Serialize added in v1.18.0

func (op *OpIntCmp) Serialize() *cell.Builder

func (*OpIntCmp) SerializeText added in v1.18.0

func (op *OpIntCmp) SerializeText() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL