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

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

Sets a bit.

bit the bit to be set

Definition at line 7535 of file Main.java.

References bits, BITS_M1, LG_BITS, and offs.

Referenced by JLex::CSimplifyNfa::computeClasses(), and 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