mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
remove branch and always count last container
This commit is contained in:
parent
6b3b459659
commit
e90e1455db
1 changed files with 2 additions and 3 deletions
|
|
@ -924,9 +924,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