Home
last modified time | relevance | path

Searched refs:bmp1 (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibbitmask.c352 struct bitmask *bitmask_copy(struct bitmask *bmp1, const struct bitmask *bmp2) in bitmask_copy() argument
355 for (i = 0; i < bmp1->size; i++) in bitmask_copy()
356 _setbit(bmp1, i, _getbit(bmp2, i)); in bitmask_copy()
357 return bmp1; in bitmask_copy()
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
487 for (i = 0; i < bmp1->size; i++) in bitmask_subset()
488 if (_getbit(bmp1, i) > _getbit(bmp2, i)) in bitmask_subset()
[all …]
Dbitmask.h156 struct bitmask *bitmask_copy(struct bitmask *bmp1, const struct bitmask *bmp2);
174 int bitmask_equal(const struct bitmask *bmp1, const struct bitmask *bmp2);
175 int bitmask_subset(const struct bitmask *bmp1, const struct bitmask *bmp2);
176 int bitmask_disjoint(const struct bitmask *bmp1, const struct bitmask *bmp2);
177 int bitmask_intersects(const struct bitmask *bmp1, const struct bitmask *bmp2);
186 struct bitmask *bitmask_complement(struct bitmask *bmp1,
188 struct bitmask *bitmask_shiftright(struct bitmask *bmp1,
190 struct bitmask *bitmask_shiftleft(struct bitmask *bmp1,
193 struct bitmask *bitmask_and(struct bitmask *bmp1,const struct bitmask *bmp2,
195 struct bitmask *bitmask_andnot(struct bitmask *bmp1, const struct bitmask *bmp2,
[all …]