|
@@ -42,36 +42,6 @@
|
|
|
* for the best explanations of this ordering.
|
|
|
*/
|
|
|
|
|
|
-int __bitmap_empty(const unsigned long *bitmap, unsigned int bits)
|
|
|
-{
|
|
|
- unsigned int k, lim = bits/BITS_PER_LONG;
|
|
|
- for (k = 0; k < lim; ++k)
|
|
|
- if (bitmap[k])
|
|
|
- return 0;
|
|
|
-
|
|
|
- if (bits % BITS_PER_LONG)
|
|
|
- if (bitmap[k] & BITMAP_LAST_WORD_MASK(bits))
|
|
|
- return 0;
|
|
|
-
|
|
|
- return 1;
|
|
|
-}
|
|
|
-EXPORT_SYMBOL(__bitmap_empty);
|
|
|
-
|
|
|
-int __bitmap_full(const unsigned long *bitmap, unsigned int bits)
|
|
|
-{
|
|
|
- unsigned int k, lim = bits/BITS_PER_LONG;
|
|
|
- for (k = 0; k < lim; ++k)
|
|
|
- if (~bitmap[k])
|
|
|
- return 0;
|
|
|
-
|
|
|
- if (bits % BITS_PER_LONG)
|
|
|
- if (~bitmap[k] & BITMAP_LAST_WORD_MASK(bits))
|
|
|
- return 0;
|
|
|
-
|
|
|
- return 1;
|
|
|
-}
|
|
|
-EXPORT_SYMBOL(__bitmap_full);
|
|
|
-
|
|
|
int __bitmap_equal(const unsigned long *bitmap1,
|
|
|
const unsigned long *bitmap2, unsigned int bits)
|
|
|
{
|