public void fastSet ( int index ) { assert index >= 0 && index < numBits ; int wordNum = index >> 6 ; // div 64 int bit = index & 0x3f ; // mod 64 long bitmask = 1L << bit ; bits [ wordNum ] |= bitmask ; }
Sets the bit at the specified index . The index should be less than the OpenBitSet size .