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

Function asConstant

instructions.go:128–128  ·  view source on GitHub ↗
(r int)

Source from the content-addressed store, hash-verified

126func isConstant(x int) bool { return 0 != x&bitRK }
127func constantIndex(r int) int { return r & ^bitRK }
128func asConstant(r int) int { return r | bitRK }
129
130// creates a mask with 'n' 1 bits at position 'p'
131func mask1(n, p uint) instruction { return ^(^instruction(0) << n) << p }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected