Lines Matching refs:i0
129 for (uptr i0 = 0; i0 < kLevel1Size; i0++) { in setAll() local
130 l1_[i0].setAll(); in setAll()
132 l2_[i0][i1].setAll(); in setAll()
146 uptr i0 = idx0(idx); in setBit() local
149 if (!l1_[i0].getBit(i1)) { in setBit()
150 l1_[i0].setBit(i1); in setBit()
151 l2_[i0][i1].clear(); in setBit()
153 bool res = l2_[i0][i1].setBit(i2); in setBit()
161 uptr i0 = idx0(idx); in clearBit() local
165 if (l1_[i0].getBit(i1)) { in clearBit()
166 res = l2_[i0][i1].clearBit(i2); in clearBit()
167 if (l2_[i0][i1].empty()) in clearBit()
168 l1_[i0].clearBit(i1); in clearBit()
175 uptr i0 = idx0(idx); in getBit() local
179 return l1_[i0].getBit(i1) && l2_[i0][i1].getBit(i2); in getBit()
183 for (uptr i0 = 0; i0 < kLevel1Size; i0++) { in getAndClearFirstOne() local
184 if (l1_[i0].empty()) continue; in getAndClearFirstOne()
185 uptr i1 = l1_[i0].getAndClearFirstOne(); in getAndClearFirstOne()
186 uptr i2 = l2_[i0][i1].getAndClearFirstOne(); in getAndClearFirstOne()
187 if (!l2_[i0][i1].empty()) in getAndClearFirstOne()
188 l1_[i0].setBit(i1); in getAndClearFirstOne()
189 uptr res = i0 * BV::kSize * BV::kSize + i1 * BV::kSize + i2; in getAndClearFirstOne()
200 for (uptr i0 = 0; i0 < kLevel1Size; i0++) { in setUnion() local
201 BV t = v.l1_[i0]; in setUnion()
204 if (l1_[i0].setBit(i1)) in setUnion()
205 l2_[i0][i1].clear(); in setUnion()
206 if (l2_[i0][i1].setUnion(v.l2_[i0][i1])) in setUnion()
216 for (uptr i0 = 0; i0 < kLevel1Size; i0++) { in setIntersection() local
217 if (l1_[i0].setIntersection(v.l1_[i0])) in setIntersection()
219 if (!l1_[i0].empty()) { in setIntersection()
220 BV t = l1_[i0]; in setIntersection()
223 if (l2_[i0][i1].setIntersection(v.l2_[i0][i1])) in setIntersection()
225 if (l2_[i0][i1].empty()) in setIntersection()
226 l1_[i0].clearBit(i1); in setIntersection()
236 for (uptr i0 = 0; i0 < kLevel1Size; i0++) { in setDifference() local
237 BV t = l1_[i0]; in setDifference()
238 t.setIntersection(v.l1_[i0]); in setDifference()
241 if (l2_[i0][i1].setDifference(v.l2_[i0][i1])) in setDifference()
243 if (l2_[i0][i1].empty()) in setDifference()
244 l1_[i0].clearBit(i1); in setDifference()
257 for (uptr i0 = 0; i0 < kLevel1Size; i0++) { in intersectsWith() local
258 BV t = l1_[i0]; in intersectsWith()
259 t.setIntersection(v.l1_[i0]); in intersectsWith()
262 if (!v.l1_[i0].getBit(i1)) continue; in intersectsWith()
263 if (l2_[i0][i1].intersectsWith(v.l2_[i0][i1])) in intersectsWith()