mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
This commit moves the computation of the intersection count to the `roaring` package so that no allocations are required. The implementation operates at the roaring container level and has specialized functions for array-array, array-bitmap, and bitmap-bitmap container pairs.
10 lines
480 B
Go
10 lines
480 B
Go
// +build !amd64
|
|
|
|
package roaring
|
|
|
|
func popcntSlice(s []uint64) uint64 { return popcntSliceGo(s) }
|
|
func popcntMaskSlice(s, m []uint64) uint64 { return popcntMaskSliceGo(s, m) }
|
|
func popcntAndSlice(s, m []uint64) uint64 { return popcntAndSliceGo(s, m) }
|
|
func popcntOrSlice(s, m []uint64) uint64 { return popcntOrSliceGo(s, m) }
|
|
func popcntXorSlice(s, m []uint64) uint64 { return popcntXorSliceGo(s, m) }
|
|
func popcnt(s uint64) uint64 { return popcntGo(s) }
|