MCPcopy 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
1807func sovRuler(x uint64) (n int) {
1808 return (math_bits.Len64(x|1) + 6) / 7
1809}
1810func sozRuler(x uint64) (n int) {
1811 return sovRuler(uint64((x << 1) ^ uint64((int64(x) >> 63))))
1812}

Callers 8

encodeVarintRulerFunction · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
sozRulerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected