Imports #
"math/bits"
"cmd/compile/internal/base"
"cmd/internal/src"
"math/bits"
"cmd/compile/internal/base"
"cmd/internal/src"
const wordBits = 32const wordMask = *ast.BinaryExprconst wordShift = 5A BitVec is a bit vector.
type BitVec struct {
N int32
B []uint32
}type Bulk struct {
words []uint32
nbit int32
nword int32
}intersection
func (dst BitVec) And(src1 BitVec, src2 BitVec)difference
func (dst BitVec) AndNot(src1 BitVec, src2 BitVec)func (bv BitVec) Clear()func (dst BitVec) Copy(src BitVec)func (bv BitVec) Count() intfunc (bv1 BitVec) Eq(bv2 BitVec) boolfunc (bv BitVec) Get(i int32) boolfunc (bv BitVec) IsEmpty() boolfunc New(n int32) BitVecfunc NewBulk(nbit int32, count int32, pos src.XPos) Bulkbvnext returns the smallest index >= i for which bvget(bv, i) == 1. If there is no such index, bvnext returns -1.
func (bv BitVec) Next(i int32) int32func (b *Bulk) Next() BitVecfunc (bv BitVec) Not()union
func (dst BitVec) Or(src1 BitVec, src2 BitVec)func (bv BitVec) Set(i int32)func (bv BitVec) String() stringfunc (bv BitVec) Unset(i int32)Generated with Arrow