cglib/src/main/java/net/sf/cglib/core/TinyBitSet.java
public int cardinality() {
        int w = value;
        int c = 0;
        while (w != 0) {
            c += T[w & 255];
            w >>= 8;
        }
        return c;
    }
public int cardinality() {
        int w = value;
        int c = 0;
        while (w != 0) {
            c += T[w & 255];
            w >>= 8;
        }
        return c;
    }
If bit 31 is set then this method results in an infinite loop.

@return the number of bits set to <code>true</code> in this TinyBitSet.