MCPcopy Create free account
hub / github.com/cortexproject/cortex / sovRing

Function sovRing

pkg/ring/ring.pb.go:552–554  ·  view source on GitHub ↗
(x uint64)

Source from the content-addressed store, hash-verified

550}
551
552func sovRing(x uint64) (n int) {
553 return (math_bits.Len64(x|1) + 6) / 7
554}
555func sozRing(x uint64) (n int) {
556 return sovRing(uint64((x << 1) ^ uint64((int64(x) >> 63))))
557}

Callers 4

encodeVarintRingFunction · 0.85
SizeMethod · 0.85
SizeMethod · 0.85
sozRingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected