(dba, other *bitArray)
| 119 | } |
| 120 | |
| 121 | func 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 | } |
searching dependent graphs…