Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Shopify/go-lua
/ trim
Function
trim
bit32.go:9–9 ·
view source on GitHub ↗
(x uint)
Source
from the content-addressed store, hash-verified
7
const
bitCount = 32
8
9
func
trim(x uint) uint {
return
x & math.MaxUint32 }
10
func
mask(n uint) uint {
return
^(math.MaxUint32 << n) }
11
12
func
shift(l *State, r uint, i int) int {
Callers
4
shift
Function · 0.85
rotate
Function · 0.85
bitOp
Function · 0.85
bit32.go
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected