MCPcopy 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
44func 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

TestScanLeftSmallFunction · 0.85
TestScanLeftRandomFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestScanLeftSmallFunction · 0.68
TestScanLeftRandomFunction · 0.68