MCPcopy Create free account
hub / github.com/Workiva/go-datastructures / andDenseWithDenseBitArray

Function andDenseWithDenseBitArray

bitarray/and.go:121–134  ·  view source on GitHub ↗
(dba, other *bitArray)

Source from the content-addressed store, hash-verified

119}
120
121func andDenseWithDenseBitArray(dba, other *bitArray) BitArray {
122 min := minUint64(uint64(len(dba.blocks)), uint64(len(other.blocks)))
123
124 ba := newBitArray(min * s)
125
126 for i := uint64(0); i < min; i++ {
127 ba.blocks[i] = dba.blocks[i].and(other.blocks[i])
128 }
129
130 ba.setLowest()
131 ba.setHighest()
132
133 return ba
134}

Callers 3

AndMethod · 0.85

Calls 5

newBitArrayFunction · 0.85
andMethod · 0.80
setLowestMethod · 0.80
setHighestMethod · 0.80
minUint64Function · 0.70

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…