mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-10 12:57:54 +00:00
remove branch and always count last container
This commit is contained in:
parent
022d84e8aa
commit
eae9d5c7f6
1 changed files with 2 additions and 3 deletions
|
|
@ -910,9 +910,8 @@ func (c *container) bitmapCountRange(start, end uint32) int {
|
|||
|
||||
// Count partial ending word.
|
||||
if int(j) < len(c.bitmap) {
|
||||
if off := 64 - (end % 64); off != 64 {
|
||||
n += popcount(c.bitmap[j] << off)
|
||||
}
|
||||
off := 64 - (end % 64)
|
||||
n += popcount(c.bitmap[j] << off)
|
||||
}
|
||||
|
||||
return int(n)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue