Home
last modified time | relevance | path

Searched refs:bitOffset (Results 1 – 9 of 9) sorted by relevance

/haiku/src/kits/debugger/util/
H A DBitBuffer.cpp16 uint32 bitOffset; member
18 BitReader(const uint8* data, uint64 bitSize, uint32 bitOffset) in BitReader()
22 bitOffset(bitOffset) in BitReader()
32 if (bitOffset == 0) in ReadByte()
35 return (byte << bitOffset) | (*data >> (8 - bitOffset)); in ReadByte()
42 bitOffset += count; in ReadBits()
44 if (bitOffset <= 8) { in ReadBits()
45 if (bitOffset == 8) { in ReadBits()
46 bitOffset = 0; in ReadBits()
51 return (byte >> (8 - bitOffset)) & ((1 << count) - 1); in ReadBits()
[all …]
H A DBitBuffer.h21 uint32 bitOffset = 0);
/haiku/src/kits/debugger/types/
H A DValueLocation.cpp18 uint64 excessMSBs = bitOffset / 8; in Normalize()
19 uint64 excessLSBs = size - (bitOffset + bitSize + 7) / 8; in Normalize()
28 bitOffset -= excessMSBs * 8; in Normalize()
32 bitOffset -= excessMSBs * 8; in Normalize()
96 ValueLocation::SetTo(const ValueLocation& other, uint64 bitOffset, in SetTo() argument
112 if (bitOffset + bitSize > totalBitSize) { in SetTo()
113 if (bitOffset >= totalBitSize) in SetTo()
115 bitSize = totalBitSize - bitOffset; in SetTo()
124 uint64 bitsToSkip = bitOffset; in SetTo()
139 piece.bitOffset += bitsToSkip; in SetTo()
[all …]
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DBlockAllocator.cpp121 uint32 bitOffset = partialBitmapBlock % 32; in Initialize() local
122 if (bitOffset != 0) in Initialize()
123 bits[offset] = ~(((uint32)1 << bitOffset) - 1); in Initialize()
503 uint32 bitOffset = base % 32; in _AllocateInBitmapBlock() local
509 if (bitOffset > 0) { in _AllocateInBitmapBlock()
510 uint32 mask = ~(((uint32)1 << bitOffset) - 1); in _AllocateInBitmapBlock()
512 while ((*bits & ((uint32)1 << bitOffset)) != 0) { in _AllocateInBitmapBlock()
513 bitOffset++; in _AllocateInBitmapBlock()
520 base += 32 - bitOffset; in _AllocateInBitmapBlock()
521 bitOffset = 0; in _AllocateInBitmapBlock()
[all …]
/haiku/headers/private/debugger/types/
H A DValueLocation.h36 uint64 bitOffset; // bit offset (to the most member
118 this->bitOffset = 0; in SetSize()
121 void SetSize(uint64 bitSize, uint64 bitOffset) in SetSize()
123 this->size = (bitOffset + bitSize + 7) / 8; in SetSize()
125 this->bitOffset = bitOffset; in SetSize()
158 uint64 bitOffset, uint64 bitSize);
/haiku/src/kits/debugger/value/
H A DValueLoader.cpp105 uint8 bitOffset = piece.bitOffset; in LoadValue() local
160 valueBuffer.AddBits(pieceBuffer, bitSize, bitOffset); in LoadValue()
184 bitOffset = registerValue.Size() * 8 - bitOffset - bitSize; in LoadValue()
186 valueBuffer.AddBits(registerValue.Bytes(), bitSize, bitOffset); in LoadValue()
/haiku/src/add-ons/kernel/drivers/input/hid_shared/
H A DHIDReportItem.cpp17 HIDReportItem::HIDReportItem(HIDReport *report, uint32 bitOffset, in HIDReportItem() argument
21 fByteOffset(bitOffset / 8), in HIDReportItem()
22 fShift(bitOffset % 8), in HIDReportItem()
H A DHIDReportItem.h15 uint32 bitOffset, uint8 bitLength,
/haiku/src/kits/debugger/debug_info/
H A DDwarfTypes.cpp412 piece.bitOffset = registers[reg].BitSize() - piece.bitSize in ResolveLocation()
413 - piece.bitOffset; in ResolveLocation()
423 piece.bitOffset = piece.size * 8 - piece.bitSize in ResolveLocation()
424 - piece.bitOffset; in ResolveLocation()
809 uint64 bitOffset = 0; in ResolveDataMemberLocation() local
820 bitOffset = value.ToUInt64(); in ResolveDataMemberLocation()
839 B_PRIu64 "/%" B_PRIu64 "\n", byteSize, bitOffset, bitSize); in ResolveDataMemberLocation()
841 if (bitOffset + bitSize > byteSize * 8) in ResolveDataMemberLocation()
850 if (!bitFieldLocation->SetTo(*location, bitOffset, bitSize)) in ResolveDataMemberLocation()