mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
454f781cd1
commit
bc72ac0519
1 changed files with 5 additions and 1 deletions
|
@ -126,6 +126,7 @@ func (bm *bitmap) forEachSetBit(f func(idx int) bool) {
|
|||
if word == 0 {
|
||||
continue
|
||||
}
|
||||
wordNew := word
|
||||
for j := 0; j < 64; j++ {
|
||||
mask := uint64(1) << j
|
||||
if (word & mask) == 0 {
|
||||
|
@ -136,9 +137,12 @@ func (bm *bitmap) forEachSetBit(f func(idx int) bool) {
|
|||
break
|
||||
}
|
||||
if !f(idx) {
|
||||
a[i] &= ^mask
|
||||
wordNew &= ^mask
|
||||
}
|
||||
}
|
||||
if word != wordNew {
|
||||
a[i] = wordNew
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue