Lines Matching refs:bit

147 	TRACE("BitmapBlock::_Update(): start index: %" B_PRIu32 ", start bit: %"
259 uint32 bit = pos & 0x1F;
262 uint32 mask = ~((1 << bit) - 1);
265 TRACE("BitmapBlock::_FindNext(): index: %" B_PRIu32 ", bit: %" B_PRIu32
266 ", mask: %" B_PRIx32 ", bits: %" B_PRIx32 "\n", index, bit, mask,
271 // Find a 32 bits block that has a marked bit
275 bit = 0;
301 for (; bit < maxBit; ++bit) {
302 // Find the marked bit
303 if ((bits >> bit & 1) != (marked ? 0U : 1U)) {
304 pos = index << 5 | bit;
305 TRACE("BitmapBlock::_FindNext(): found bit: %" B_PRIu32 "\n", pos);
310 panic("Couldn't find bit inside an uint32 (%" B_PRIx32 ")\n", bits);
329 int32 bit = pos & 0x1F;
331 uint32 mask = (1 << bit) - 1;
335 TRACE("BitmapBlock::FindPreviousMarked(): index: %" B_PRIu32 " bit: %"
336 B_PRIu32 " bits: %" B_PRIx32 "\n", index, bit, bits);
339 // Find a block of 32 bits that has a marked bit
353 bit = 31;
356 TRACE("BitmapBlock::FindPreviousMarked(): index: %" B_PRIu32 " bit: %"
357 B_PRIu32 " bits: %" B_PRIx32 "\n", index, bit, bits);
359 for (; bit >= 0; --bit) {
360 // Find the marked bit
361 if ((bits >> bit & 1) != 0) {
362 pos = index << 5 | bit;
367 panic("Couldn't find marked bit inside an int32 with value different than "
439 for (int32 bit = 31; bit >= 0; --bit) {
440 if ((startBits >> bit & 1) != 0)
447 for (int32 bit = 0; bit < 32; ++bit) {
448 if ((bits >> bit & 1) != 0)
488 for (int32 bit = 31; bit >= 0; --bit) {
489 if ((startBits >> bit & 1) != 0)
501 for (int32 bit = 0; bit < 32; ++bit) {
502 if ((bits >> bit & 1) == 0)