/* The byte ordering of bitmaps is more natural on little endian architectures.  */
int slow_bitmap_empty(const unsigned long *bitmap, long bits)
/* The byte ordering of bitmaps is more natural on little endian architectures.  */
int slow_bitmap_empty(const unsigned long *bitmap, long bits)
{
    long 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;
}