Lines Matching refs:src1
152 bool __pure __bitmap_or_equal(const unsigned long *src1,
322 bool bitmap_and(unsigned long *dst, const unsigned long *src1, in bitmap_and() argument
326 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
327 return __bitmap_and(dst, src1, src2, nbits); in bitmap_and()
331 void bitmap_or(unsigned long *dst, const unsigned long *src1, in bitmap_or() argument
335 *dst = *src1 | *src2; in bitmap_or()
337 __bitmap_or(dst, src1, src2, nbits); in bitmap_or()
341 void bitmap_xor(unsigned long *dst, const unsigned long *src1, in bitmap_xor() argument
345 *dst = *src1 ^ *src2; in bitmap_xor()
347 __bitmap_xor(dst, src1, src2, nbits); in bitmap_xor()
351 bool bitmap_andnot(unsigned long *dst, const unsigned long *src1, in bitmap_andnot() argument
355 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_andnot()
356 return __bitmap_andnot(dst, src1, src2, nbits); in bitmap_andnot()
376 bool bitmap_equal(const unsigned long *src1, const unsigned long *src2, unsigned int nbits) in bitmap_equal() argument
379 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
382 return !memcmp(src1, src2, nbits / 8); in bitmap_equal()
383 return __bitmap_equal(src1, src2, nbits); in bitmap_equal()
396 bool bitmap_or_equal(const unsigned long *src1, const unsigned long *src2, in bitmap_or_equal() argument
400 return __bitmap_or_equal(src1, src2, src3, nbits); in bitmap_or_equal()
402 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_or_equal()
406 bool bitmap_intersects(const unsigned long *src1, const unsigned long *src2, unsigned int nbits) in bitmap_intersects() argument
409 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
411 return __bitmap_intersects(src1, src2, nbits); in bitmap_intersects()
415 bool bitmap_subset(const unsigned long *src1, const unsigned long *src2, unsigned int nbits) in bitmap_subset() argument
418 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_subset()
420 return __bitmap_subset(src1, src2, nbits); in bitmap_subset()
450 unsigned long bitmap_weight_and(const unsigned long *src1, in bitmap_weight_and() argument
454 return hweight_long(*src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight_and()
455 return __bitmap_weight_and(src1, src2, nbits); in bitmap_weight_and()
459 unsigned long bitmap_weight_andnot(const unsigned long *src1, in bitmap_weight_andnot() argument
463 return hweight_long(*src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight_andnot()
464 return __bitmap_weight_andnot(src1, src2, nbits); in bitmap_weight_andnot()