Lines Matching defs:bit
142 TRACE("BitmapBlock::_Update(): start index: %lu, start bit: %lu, remaining "
249 uint32 bit = pos & 0x1F;
252 uint32 mask = ~((1 << bit) - 1);
255 TRACE("BitmapBlock::_FindNext(): index: %lu, bit: %lu, mask: %lX, "
256 "bits: %lX\n", index, bit, mask, bits);
260 // Find a 32 bits block that has a marked bit
264 bit = 0;
290 for (; bit < maxBit; ++bit) {
291 // Find the marked bit
292 if ((bits >> bit & 1) != (marked ? 0U : 1U)) {
293 pos = index << 5 | bit;
294 TRACE("BitmapBlock::_FindNext(): found bit: %lu\n", pos);
299 panic("Couldn't find bit inside an uint32 (%lx)\n", bits);
318 int32 bit = pos & 0x1F;
320 uint32 mask = (1 << bit) - 1;
324 TRACE("BitmapBlock::FindPreviousMarked(): index: %lu bit: %lu bits: %lx\n",
325 index, bit, bits);
328 // Find an block of 32 bits that has a marked bit
340 bit = 31;
343 TRACE("BitmapBlock::FindPreviousMarked(): index: %lu bit: %lu bits: %lx\n",
344 index, bit, bits);
346 for (; bit >= 0; --bit) {
347 // Find the marked bit
348 if ((bits >> bit & 1) != 0) {
349 pos = index << 5 | bit;
354 panic("Couldn't find marked bit inside an int32 with value different than "
424 for (int32 bit = 31; bit >= 0; --bit) {
425 if ((startBits >> bit & 1) != 0)
432 for (int32 bit = 0; bit < 32; ++bit) {
433 if ((bits >> bit & 1) != 0)
471 for (int32 bit = 31; bit >= 0; --bit) {
472 if ((startBits >> bit & 1) != 0)
483 for (int32 bit = 0; bit < 32; ++bit) {
484 if ((bits >> bit & 1) == 0)