[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
bitindex_t
: accessing bits in bitstrings
To reference a particular bit in a bitstring, you
have to use an index of type bitindex_t
.
typedef struct bitindex_t { int index; /* the index of the referenced bit, starting from 0 */ int word; /* the index of the word containing the bit, starting from 0 */ bitstring_t bit; /* the mask selecting the right bit */ } bitindex_t; |
bitstring_t
needed to
represent N bits.