MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / wordCardinalityForBitmapRange

Function wordCardinalityForBitmapRange

util.go:200–211  ·  view source on GitHub ↗
(bitmap []uint64, start int, end int)

Source from the content-addressed store, hash-verified

198}
199
200func wordCardinalityForBitmapRange(bitmap []uint64, start int, end int) uint64 {
201 answer := uint64(0)
202 if start >= end {
203 return answer
204 }
205 firstword := start / 64
206 endword := (end - 1) / 64
207 for i := firstword; i <= endword; i++ {
208 answer += popcount(bitmap[i])
209 }
210 return answer
211}
212
213func selectBitPosition(w uint64, j int) int {
214 seen := 0

Calls 1

popcountFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…