Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortexproject/cortex
/ sovRuler
Function
sovRuler
pkg/ruler/ruler.pb.go:1807–1809 ·
view source on GitHub ↗
(x uint64)
Source
from the content-addressed store, hash-verified
1805
}
1806
1807
func
sovRuler(x uint64) (n int) {
1808
return
(math_bits.Len64(x|1) + 6) / 7
1809
}
1810
func
sozRuler(x uint64) (n int) {
1811
return
sovRuler(uint64((x << 1) ^ uint64((int64(x) >> 63))))
1812
}
Callers
8
encodeVarintRuler
Function · 0.85
Size
Method · 0.85
Size
Method · 0.85
Size
Method · 0.85
Size
Method · 0.85
Size
Method · 0.85
Size
Method · 0.85
sozRuler
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected