H A D | libbitmask.c | 351 /* Copy bmp2 to bmp1 */ 352 struct bitmask *bitmask_copy(struct bitmask *bmp1, const struct bitmask *bmp2) in bitmask_copy() argument 356 _setbit(bmp1, i, _getbit(bmp2, i)); in bitmask_copy() 470 * Binary Boolean operations: bmp1 op? bmp2 474 int bitmask_equal(const struct bitmask *bmp1, const struct bitmask *bmp2) in bitmask_equal() argument 477 for (i = 0; i < bmp1->size || i < bmp2->size; i++) in bitmask_equal() 478 if (_getbit(bmp1, i) != _getbit(bmp2, i)) in bitmask_equal() 484 int bitmask_subset(const struct bitmask *bmp1, const struct bitmask *bmp2) in bitmask_subset() argument 488 if (_getbit(bmp1, i) > _getbit(bmp2, i)) in bitmask_subset() 494 int bitmask_disjoint(const struct bitmask *bmp1, const struct bitmask *bmp2) in bitmask_disjoint() argument 504 bitmask_intersects(const struct bitmask *bmp1, const struct bitmask *bmp2) bitmask_intersects() argument 551 bitmask_complement(struct bitmask *bmp1, const struct bitmask *bmp2) bitmask_complement() argument 561 bitmask_shiftright(struct bitmask *bmp1, const struct bitmask *bmp2, unsigned int n) bitmask_shiftright() argument 571 bitmask_shiftleft(struct bitmask *bmp1, const struct bitmask *bmp2, unsigned int n) bitmask_shiftleft() argument 585 bitmask_and(struct bitmask *bmp1, const struct bitmask *bmp2, const struct bitmask *bmp3) bitmask_and() argument 595 bitmask_andnot(struct bitmask *bmp1, const struct bitmask *bmp2, const struct bitmask *bmp3) bitmask_andnot() argument 605 bitmask_or(struct bitmask *bmp1, const struct bitmask *bmp2, const struct bitmask *bmp3) bitmask_or() argument 615 bitmask_eor(struct bitmask *bmp1, const struct bitmask *bmp2, const struct bitmask *bmp3) bitmask_eor() argument [all...] |