Logo Search packages:      
Sourcecode: jlex version File versions  Download package

void JLex::SparseBitSet::clear ( int  bit  )  [inline]

Clears a bit.

Parameters:
bit the bit to be cleared

Definition at line 7547 of file Main.java.

References bits, BITS_M1, LG_BITS, and offs.

Referenced by main().

                               {
      int bnum = bit >> LG_BITS;
      int idx  = bsearch(bnum);
      if (idx >= size || offs[idx]!=bnum)
          new_block(idx, bnum);
      bits[idx] &= ~(1L << (bit & BITS_M1) );
    }


Generated by  Doxygen 1.6.0   Back to index