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

Function constantIndex

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

Source from the content-addressed store, hash-verified

125
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'

Callers 2

StringMethod · 0.85
constantNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected