MCPcopy Index your code
hub / github.com/Shopify/go-lua / createABC

Function createABC

instructions.go:165–170  ·  view source on GitHub ↗
(op opCode, a, b, c int)

Source from the content-addressed store, hash-verified

163func (i *instruction) setSBx(arg int) { i.setArg(posBx, sizeBx, arg+maxArgSBx) }
164
165func createABC(op opCode, a, b, c int) instruction {
166 return instruction(op)<<posOp |
167 instruction(a)<<posA |
168 instruction(b)<<posB |
169 instruction(c)<<posC
170}
171
172func createABx(op opCode, a, bx int) instruction {
173 return instruction(op)<<posOp |

Callers 2

EncodeABCMethod · 0.85
patchTestRegisterMethod · 0.85

Calls 1

instructionTypeAlias · 0.85

Tested by

no test coverage detected