public void or(BitVector other) { if (this == other) { return; } long[] otherBits = other.bits; int j; for (j = otherBits.length - 1; j >= 0; j--) { if (otherBits[j] != 0L) { break; } } expand(j << 6); for (; j >= 0; j--) { bits[j] |= otherBits[j]; } }
public void xor(BitVector other) { if (this == other) { return; } long[] otherBits = other.bits; int j; for (j = otherBits.length - 1; j >= 0; j--) { if (otherBits[j] != 0L) { break; } } expand(j << 6); for (; j >= 0; j--) { bits[j] ^= otherBits[j]; } }
public void copyFrom(BitVector other) { if (this == other) { return; } long[] otherBits = other.bits; int j; for (j = otherBits.length - 1; j >= 0; j--) { if (otherBits[j] != 0L) { break; } } expand(j << 6); int i = j + 1; for (; j >= 0; j--) { bits[j] = otherBits[j]; } for (; i < bits.length; i++) { bits[i] = 0L; } }
public boolean set(int bit) { expand(bit); boolean ret = !get(bit); bits[indexOf(bit)] |= mask(bit); return ret; }
public void or( BitVector other ) { if( this == other ) return; long[] otherBits = other.bits; int j; for( j = otherBits.length-1; j >= 0; j-- ) { if( otherBits[j] != 0L ) break; } expand( j<<6 ); for( ; j >= 0; j-- ) { bits[j] |= otherBits[j]; } }
public void or( BitVector other ) { if( this == other ) return; long[] otherBits = other.bits; int j; for( j = otherBits.length-1; j >= 0; j-- ) { if( otherBits[j] != 0L ) break; } expand( j<<6 ); for( ; j >= 0; j-- ) { bits[j] |= otherBits[j]; } }
public void xor( BitVector other ) { if( this == other ) return; long[] otherBits = other.bits; int j; for( j = otherBits.length-1; j >= 0; j-- ) { if( otherBits[j] != 0L ) break; } expand( j<<6 ); for( ; j >= 0; j-- ) { bits[j] ^= otherBits[j]; } } public boolean set( int bit ) {
public void xor( BitVector other ) { if( this == other ) return; long[] otherBits = other.bits; int j; for( j = otherBits.length-1; j >= 0; j-- ) { if( otherBits[j] != 0L ) break; } expand( j<<6 ); for( ; j >= 0; j-- ) { bits[j] ^= otherBits[j]; } } public boolean set( int bit ) {
public void copyFrom( BitVector other ) { if( this == other ) return; long[] otherBits = other.bits; int j; for( j = otherBits.length-1; j >= 0; j-- ) { if( otherBits[j] != 0L ) break; } expand( j<<6 ); int i = j+1; for( ; j >= 0; j-- ) { bits[j] = otherBits[j]; } for( ; i < bits.length; i++ ) { bits[i] = 0L; } } public void or( BitVector other ) {
public void copyFrom( BitVector other ) { if( this == other ) return; long[] otherBits = other.bits; int j; for( j = otherBits.length-1; j >= 0; j-- ) { if( otherBits[j] != 0L ) break; } expand( j<<6 ); int i = j+1; for( ; j >= 0; j-- ) { bits[j] = otherBits[j]; } for( ; i < bits.length; i++ ) { bits[i] = 0L; } } public void or( BitVector other ) {
public boolean set( int bit ) { expand(bit); boolean ret = !get(bit); bits[indexOf(bit)] |= mask(bit); return ret; } /** Returns number of bits in the underlying array. */
public boolean set( int bit ) { expand(bit); boolean ret = !get(bit); bits[indexOf(bit)] |= mask(bit); return ret; } /** Returns number of bits in the underlying array. */