Lines Matching refs:bs1
286 bitset_and(bitset_t *bs1, bitset_t *bs2, bitset_t *res)
290 ASSERT(bs1->bs_fanout == bs2->bs_fanout);
291 ASSERT(bs1->bs_fanout == res->bs_fanout);
293 for (anyset = 0, i = 0; i < bs1->bs_words; i++) {
294 if ((res->bs_set[i] = (bs1->bs_set[i] & bs2->bs_set[i])) != 0)
301 bitset_or(bitset_t *bs1, bitset_t *bs2, bitset_t *res)
305 ASSERT(bs1->bs_fanout == bs2->bs_fanout);
306 ASSERT(bs1->bs_fanout == res->bs_fanout);
308 for (anyset = 0, i = 0; i < bs1->bs_words; i++) {
309 if ((res->bs_set[i] = (bs1->bs_set[i] | bs2->bs_set[i])) != 0)
316 bitset_xor(bitset_t *bs1, bitset_t *bs2, bitset_t *res)
320 ASSERT(bs1->bs_fanout == bs2->bs_fanout);
321 ASSERT(bs1->bs_fanout == res->bs_fanout);
323 for (i = 0; i < bs1->bs_words; i++) {
324 if ((res->bs_set[i] = (bs1->bs_set[i] ^ bs2->bs_set[i])) != 0)
334 bitset_match(bitset_t *bs1, bitset_t *bs2)
338 if (bs1->bs_words != bs2->bs_words)
341 for (i = 0; i < bs1->bs_words; i++)
342 if (bs1->bs_set[i] != bs2->bs_set[i])