Home | History | Annotate | Download | only in blockfile

Lines Matching defs:word

14 int FindLSBSetNonZero(uint32 word) {
17 float f = static_cast<float>(word & -static_cast<int>(word));
29 // Returns the index of the first bit set to |value| from |word|. This code
31 int FindLSBNonEmpty(uint32 word, bool value) {
32 // If we are looking for 0, negate |word| and look for 1.
34 word = ~word;
36 return FindLSBSetNonZero(word);
76 // Always clear the unused bits in the last word.
139 // Set the bits in the first word.
148 // Now set the bits in the last word.
173 int word = begin / kIntBits;
179 uint32 this_word = map_[word];
184 // first word by shifting to the right, and then test the remaining bits.
185 if (word < last_word) {
190 word++;
192 while (word < last_word) {
193 this_word = map_[word++];
201 // Test the portion of the last word that lies within the range. (This logic
202 // also handles the case where the entire range lies within a single word.)
235 // First word is special - we need to mask off leading bits.
245 // Loop through all but the last word. Note that 'limit' is one
258 // Last word is special - we may need to mask off trailing bits. Note that
260 // multiple of 32 we want to check all bits in this word.
299 int word = start / kIntBits;
305 map_[word] |= to_add;
307 map_[word] &= ~to_add;