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

Function mask1

instructions.go:131–131  ·  view source on GitHub ↗

creates a mask with 'n' 1 bits at position 'p'

(n, p uint)

Source from the content-addressed store, hash-verified

129
130// creates a mask with 'n' 1 bits at position 'p'
131func mask1(n, p uint) instruction { return ^(^instruction(0) << n) << p }
132
133// creates a mask with 'n' 0 bits at position 'p'
134func mask0(n, p uint) instruction { return ^mask1(n, p) }

Callers 3

mask0Function · 0.85
argMethod · 0.85
setArgMethod · 0.85

Calls 1

instructionTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…