MCPcopy Create free account
hub / github.com/Shopify/go-lua / arg

Method arg

instructions.go:137–137  ·  view source on GitHub ↗
(pos, size uint)

Source from the content-addressed store, hash-verified

135
136func (i instruction) opCode() opCode { return opCode(i >> posOp & (1<<sizeOp - 1)) }
137func (i instruction) arg(pos, size uint) int { return int(i >> pos & mask1(size, 0)) }
138func (i *instruction) setOpCode(op opCode) { i.setArg(posOp, sizeOp, int(op)) }
139func (i *instruction) setArg(pos, size uint, arg int) {
140 *i = *i&mask0(size, pos) | instruction(arg)<<pos&mask1(size, pos)

Callers

nothing calls this directly

Calls 1

mask1Function · 0.85

Tested by

no test coverage detected