MCPcopy Create free account
hub / github.com/chain/txvm / IsSmallIntOp

Function IsSmallIntOp

protocol/txvm/op/op.go:129–131  ·  view source on GitHub ↗

IsSmallIntOp tells whether the given opcode is one of the small-integer-encoding instructions.

(o byte)

Source from the content-addressed store, hash-verified

127// IsSmallIntOp tells whether the given opcode is one of the
128// small-integer-encoding instructions.
129func IsSmallIntOp(o byte) bool {
130 return o >= MinSmallInt && o <= MaxSmallInt
131}
132
133// IsSmallInt tells whether the given integer can be encoded with a
134// small-integer-encoding instruction.

Callers 3

stepMethod · 0.92
TraceFunction · 0.92
DisassembleFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected