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

Function flipBitmapRange

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

Source from the content-addressed store, hash-verified

130const maxLowBit = 0xFFFF
131
132func flipBitmapRange(bitmap []uint64, start int, end int) {
133 if start >= end {
134 return
135 }
136 firstword := start / 64
137 endword := (end - 1) / 64
138 bitmap[firstword] ^= ^(^uint64(0) << uint(start%64))
139 for i := firstword; i < endword; i++ {
140 bitmap[i] = ^bitmap[i]
141 }
142 bitmap[endword] ^= ^uint64(0) >> (uint(-end) % 64)
143}
144
145func resetBitmapRange(bitmap []uint64, start int, end int) {
146 if start >= end {

Callers 2

inotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…