Lines Matching refs:sidx
20 size_t sidx, eidx; member
33 bd->sidx = offset / bundle_bitness(bitarray); in setup_bundle_data()
42 if (bd->sidx == bd->eidx) { in setup_bundle_data()
78 if (bd->sidx == bd->eidx) { in match_region()
79 bundle = bitarray->bundles[bd->sidx]; in match_region()
87 mismatch_bundle_idx = bd->sidx; in match_region()
98 bundle = bitarray->bundles[bd->sidx]; in match_region()
106 mismatch_bundle_idx = bd->sidx; in match_region()
124 for (idx = bd->sidx + 1; idx < bd->eidx; idx++) { in match_region()
184 if (bd->sidx == bd->eidx) { in set_region()
187 bitarray->bundles[bd->sidx] |= bd->smask; in set_region()
189 bitarray->bundles[bd->sidx] &= ~bd->smask; in set_region()
198 bitarray->bundles[bd->sidx] |= bd->smask; in set_region()
200 for (idx = bd->sidx + 1; idx < bd->eidx; idx++) { in set_region()
204 bitarray->bundles[bd->sidx] &= ~bd->smask; in set_region()
206 for (idx = bd->sidx + 1; idx < bd->eidx; idx++) { in set_region()
238 if (bd.sidx == bd.eidx) { in sys_bitarray_popcount_region()
240 *count = POPCOUNT(bitarray->bundles[bd.sidx] & bd.smask); in sys_bitarray_popcount_region()
248 *count += POPCOUNT(bitarray->bundles[bd.sidx] & bd.smask); in sys_bitarray_popcount_region()
250 for (idx = bd.sidx + 1; idx < bd.eidx; idx++) { in sys_bitarray_popcount_region()
290 if (bd.sidx == bd.eidx) { in sys_bitarray_xor()
292 dst->bundles[bd.sidx] = in sys_bitarray_xor()
293 ((other->bundles[bd.sidx] ^ dst->bundles[bd.sidx]) & bd.smask) | in sys_bitarray_xor()
294 (dst->bundles[bd.sidx] & ~bd.smask); in sys_bitarray_xor()
301 dst->bundles[bd.sidx] = in sys_bitarray_xor()
302 ((other->bundles[bd.sidx] ^ dst->bundles[bd.sidx]) & bd.smask) | in sys_bitarray_xor()
303 (dst->bundles[bd.sidx] & ~bd.smask); in sys_bitarray_xor()
307 for (idx = bd.sidx + 1; idx < bd.eidx; idx++) { in sys_bitarray_xor()
586 count = POPCOUNT(bitarray->bundles[bd.sidx] & bd.smask); in sys_bitarray_find_nth_set()
589 idx = bd.sidx; in sys_bitarray_find_nth_set()
594 if (bd.sidx != bd.eidx) { in sys_bitarray_find_nth_set()
600 for (idx = bd.sidx + 1; idx < bd.eidx; idx++) { in sys_bitarray_find_nth_set()