Lines Matching refs:bit_index
31 -bitvector_set_bit(bitvector_t *v, int bit_index);
34 -bitvector_get_bit(const bitvector_t *v, int bit_index);
72 +#define _bitvector_get_bit(v, bit_index) \
74 + ((((v)->word[((bit_index) >> 5)]) >> ((bit_index) & 31)) & 1) \
78 +#define _bitvector_set_bit(v, bit_index) \
80 + (((v)->word[((bit_index) >> 5)] |= ((uint32_t)1 << ((bit_index) & 31)))) \
83 +#define _bitvector_clear_bit(v, bit_index) \
85 + (((v)->word[((bit_index) >> 5)] &= ~((uint32_t)1 << ((bit_index) & 31)))) \
95 +#define bitvector_get_bit(v, bit_index) _bitvector_get_bit(v, bit_index)
96 +#define bitvector_set_bit(v, bit_index) _bitvector_set_bit(v, bit_index)
97 +#define bitvector_clear_bit(v, bit_index) _bitvector_clear_bit(v, bit_index)
103 +bitvector_get_bit(const bitvector_t *v, int bit_index);
106 +bitvector_set_bit(bitvector_t *v, int bit_index);
109 +bitvector_clear_bit(bitvector_t *v, int bit_index);
198 +bitvector_get_bit(const bitvector_t *v, int bit_index)
200 + return _bitvector_get_bit(v, bit_index);
204 +bitvector_set_bit(bitvector_t *v, int bit_index)
206 + _bitvector_set_bit(v, bit_index);
210 +bitvector_clear_bit(bitvector_t *v, int bit_index)
212 + _bitvector_clear_bit(v, bit_index);
287 + const int bit_index = index & 31;
295 + if (bit_index == 0) {
300 + x->word[i] = (x->word[i+base_index] >> bit_index) ^
301 + (x->word[i+base_index+1] << (32 - bit_index));
302 + x->word[word_length - base_index-1] = x->word[word_length-1] >> bit_index;
357 -bitvector_set_bit(bitvector_t *v, int bit_index) {
359 - v->word[(bit_index >> 5)] |= (1 << (bit_index & 31));
364 -bitvector_get_bit(const bitvector_t *v, int bit_index) {
366 - return ((v->word[(bit_index >> 5)]) >> (bit_index & 31)) & 1;