Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ slowScanLeft
Function
slowScanLeft
bit/scan.go:44–51 ·
view source on GitHub ↗
(x uint64)
Source
from the content-addressed store, hash-verified
42
}
43
44
func
slowScanLeft(x uint64) uint {
45
for
k := byte(0); k < 64; k += 1 {
46
if
x&(1<<k) != 0 {
47
return
uint(k)
48
}
49
}
50
return
NotFound
51
}
Callers
2
TestScanLeftSmall
Function · 0.85
TestScanLeftRandom
Function · 0.85
Calls
no outgoing calls
Tested by
2
TestScanLeftSmall
Function · 0.68
TestScanLeftRandom
Function · 0.68