(bitmap []uint64, start int, end int)
| 198 | } |
| 199 | |
| 200 | func 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 | |
| 213 | func selectBitPosition(w uint64, j int) int { |
| 214 | seen := 0 |
no test coverage detected
searching dependent graphs…