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

static unsigned BitVector::getNumWords ( unsigned  bits  )  [inline, static]

Determine the number of words the specified amount of bits occupy

Definition at line 85 of file BitVector.h.

Referenced by findNext(), operator==(), and setSize().

                                              {
    const unsigned bitsPerWord = CHAR_BIT * sizeof (word_t);
    return (bits + bitsPerWord - 1) / bitsPerWord;
  }


Generated by  Doxygen 1.6.0   Back to index