Lines Matching defs:word
41 typedef size_t idx_t; // Type used for bit and word indices.
52 bm_word_t* _map; // First word in bitmap
60 // Return the position of bit within the word that contains it (e.g., if
64 // Return a mask that will select the specified bit, when applied to the word
68 // Return the index of the word containing the specified bit.
71 // Return the bit number of the first bit in the specified word.
72 static idx_t bit_index(idx_t word) { return word << LogBitsPerWord; }
74 // Return the array of bitmap words, or a specific word from it.
76 bm_word_t map(idx_t word) const { return _map[word]; }
78 // Return a pointer to the word containing the specified bit.
81 // Set a word to a specified value or to all ones; clear a word.
82 void set_word (idx_t word, bm_word_t val) { _map[word] = val; }
83 void set_word (idx_t word) { set_word(word, ~(uintptr_t)0); }
84 void clear_word(idx_t word) { _map[word] = 0; }
88 // Ranges within a single word.
100 // The index of the first full word in a range.
151 // Align bit index up or down to the next bitmap word boundary, or check
277 typedef BitMap::idx_t idx_t; // Type used for bit and word indices.