mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
6026112913
commit
7ffcdabcbe
1 changed files with 7 additions and 0 deletions
|
@ -148,6 +148,13 @@ func (bm *bitmap) forEachSetBit(f func(idx int) bool) {
|
||||||
|
|
||||||
// forEachSetBitReadonly calls f for each set bit
|
// forEachSetBitReadonly calls f for each set bit
|
||||||
func (bm *bitmap) forEachSetBitReadonly(f func(idx int)) {
|
func (bm *bitmap) forEachSetBitReadonly(f func(idx int)) {
|
||||||
|
if bm.areAllBitsSet() {
|
||||||
|
for i := range bm.bitsLen {
|
||||||
|
f(i)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
a := bm.a
|
a := bm.a
|
||||||
bitsLen := bm.bitsLen
|
bitsLen := bm.bitsLen
|
||||||
for i, word := range a {
|
for i, word := range a {
|
||||||
|
|
Loading…
Reference in a new issue