/art/runtime/ |
bit_memory_region.h | 29 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_size) { 30 bit_start_ = bit_offset % kBitsPerByte; 31 const size_t start = bit_offset / kBitsPerByte; 32 const size_t end = (bit_offset + bit_size + kBitsPerByte - 1) / kBitsPerByte; 43 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset, size_t bit_size) const { 44 return BitMemoryRegion(region_, bit_start_ + bit_offset, bit_size); 49 ALWAYS_INLINE bool LoadBit(uintptr_t bit_offset) const { 50 return region_.LoadBit(bit_offset + bit_start_); 53 ALWAYS_INLINE void StoreBit(uintptr_t bit_offset, bool value) const { 54 region_.StoreBit(bit_offset + bit_start_, value) [all...] |
memory_region_test.cc | 65 for (size_t bit_offset = 0; bit_offset < 2 * kBitsPerByte; ++bit_offset) { 69 BitMemoryRegion bmr(region, bit_offset, length); 70 region.StoreBits(bit_offset, masked_value, length); 71 EXPECT_EQ(region.LoadBits(bit_offset, length), masked_value); 74 EXPECT_EQ(region.LoadBits(0, bit_offset), (1u << bit_offset) - 1); 75 EXPECT_EQ(region.LoadBits(bit_offset + length, length), length_mask); 76 region.StoreBits(bit_offset, length_mask, length) [all...] |
memory_region.cc | 35 void MemoryRegion::StoreBits(uintptr_t bit_offset, uint32_t value, size_t length) { 38 DCHECK_LE(bit_offset + length, size_in_bits()); 43 // How many remaining bits in current byte is (bit_offset % kBitsPerByte) + 1. 44 uint8_t* out = ComputeInternalPointer<uint8_t>(bit_offset >> kBitsPerByteLog2); 47 uintptr_t bit_remainder = bit_offset % kBitsPerByte; 64 DCHECK_EQ(LoadBits(bit_offset, orig_len), orig_value) << bit_offset << " " << orig_len;
|
memory_region.h | 113 ALWAYS_INLINE bool LoadBit(uintptr_t bit_offset) const { 115 uint8_t byte = *ComputeBitPointer(bit_offset, &bit_mask); 119 ALWAYS_INLINE void StoreBit(uintptr_t bit_offset, bool value) const { 121 uint8_t* byte = ComputeBitPointer(bit_offset, &bit_mask); 129 // Load `length` bits from the region starting at bit offset `bit_offset`. 133 ALWAYS_INLINE uint32_t LoadBits(uintptr_t bit_offset, size_t length) const { 135 DCHECK_LE(bit_offset + length, size_in_bits()); 140 const uint8_t* address = begin() + bit_offset / kBitsPerByte; 141 const uint32_t shift = bit_offset & (kBitsPerByte - 1); 161 DCHECK_EQ((value >> i) & 1, LoadBit(bit_offset + i)) [all...] |
stack_map.h | 1106 size_t bit_offset = kInvalidOffset; member in struct:art::DexRegisterLocation::BitEncodingTable 1314 size_t bit_offset = HeaderSize() * kBitsPerByte; local 1474 const size_t bit_offset = encoding.inline_info.bit_offset + local [all...] |
/external/libvpx/libvpx/vpx_dsp/ |
bitwriter_buffer.c | 18 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); 22 const int off = (int)wb->bit_offset; 31 wb->bit_offset = off + 1;
|
bitreader_buffer.c | 14 return (rb->bit_offset + 7) >> 3; 18 const size_t off = rb->bit_offset; 23 rb->bit_offset = off + 1;
|
bitwriter_buffer.h | 22 size_t bit_offset; member in struct:vpx_write_bit_buffer
|
bitreader_buffer.h | 27 size_t bit_offset; member in struct:vpx_read_bit_buffer
|
/hardware/intel/common/libmix/videoencoder/ |
bitstream.h | 25 int bit_offset; member in struct:bitstream 45 bs->bit_offset = 0; 50 int pos = (bs->bit_offset >> 5); 51 int bit_offset = (bs->bit_offset & 0x1f); local 52 int bit_left = 32 - bit_offset; 54 if (bit_offset) { 61 int pos = (bs->bit_offset >> 5); 62 int bit_offset = (bs->bit_offset & 0x1f) local 116 int bit_offset = (bs->bit_offset & 0x7); local [all...] |
/external/mesa3d/src/mesa/main/ |
texcompress_bptc.c | 359 int bit_offset, 373 extract_bits(block, bit_offset, mode->n_color_bits); 374 bit_offset += mode->n_color_bits; 384 extract_bits(block, bit_offset, mode->n_alpha_bits); 385 bit_offset += mode->n_alpha_bits; 402 pbit = extract_bits(block, bit_offset, 1); 403 bit_offset += 1; 413 pbit = extract_bits(block, bit_offset, 1); 414 bit_offset += 1; 446 return bit_offset; 544 int bit_offset, secondary_bit_offset; local 850 int bit_offset; local [all...] |
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/ |
dig64.h | 37 uint8_t bit_offset;
member in struct:dig64_gas
|
/external/syslinux/gpxe/src/drivers/bitbash/ |
spi_bit.c | 93 unsigned int bit_offset; local 104 bit_offset = ( ( endianness == SPI_BIT_BIG_ENDIAN ) ? 106 byte_offset = ( bit_offset / 8 ); 107 byte_mask = ( 1 << ( bit_offset % 8 ) );
|
/external/webrtc/webrtc/base/ |
bitbuffer_unittest.cc | 144 size_t byte_offset, bit_offset; local 148 buffer.GetCurrentOffset(&byte_offset, &bit_offset); 150 EXPECT_EQ(7u, bit_offset); 152 buffer.GetCurrentOffset(&byte_offset, &bit_offset); 154 EXPECT_EQ(7u, bit_offset); 159 buffer.GetCurrentOffset(&byte_offset, &bit_offset); 161 EXPECT_EQ(4u, bit_offset); 164 buffer.GetCurrentOffset(&byte_offset, &bit_offset); 166 EXPECT_EQ(0u, bit_offset);
|
bitbuffer.cc | 211 bool BitBuffer::Seek(size_t byte_offset, size_t bit_offset) { 212 if (byte_offset > byte_count_ || bit_offset > 7 || 213 (byte_offset == byte_count_ && bit_offset > 0)) { 217 bit_offset_ = bit_offset;
|
bitbuffer.h | 77 bool Seek(size_t byte_offset, size_t bit_offset);
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
h264_sps_parser_unittest.cc | 94 size_t byte_count, bit_offset; local 95 writer.GetCurrentOffset(&byte_count, &bit_offset); 96 if (bit_offset > 0) {
|
/external/pdfium/core/fxcodec/lgif/ |
fx_gif.cpp | 211 uint8_t& bit_offset, 215 index |= ((1 << bit_cut) - 1) << (7 - bit_offset); 216 uint8_t ret = ((index & buf[offset]) >> (7 - bit_offset)); 217 bit_offset += bit_cut; 218 if (bit_offset >= 8) { 219 if (bit_offset > 8) { 222 bit_offset -= 8; 258 bit_offset = 0; 290 bit_offset); 291 if (index_bit_cur <= (8 - bit_offset)) { [all...] |
/hardware/intel/common/libva/test/encode/ |
mpeg2enc.c | 157 int bit_offset; member in struct:__bitstream 179 bs->bit_offset = 0; 185 int pos = (bs->bit_offset >> 5); 186 int bit_offset = (bs->bit_offset & 0x1f); local 187 int bit_left = 32 - bit_offset; 189 if (bit_offset) { 197 int pos = (bs->bit_offset >> 5); 198 int bit_offset = (bs->bit_offset & 0x1f) local 228 int bit_offset = (bs->bit_offset & 0x7); local [all...] |
mpeg2vaenc.c | 157 int bit_offset; member in struct:__bitstream 179 bs->bit_offset = 0; 185 int pos = (bs->bit_offset >> 5); 186 int bit_offset = (bs->bit_offset & 0x1f); local 187 int bit_left = 32 - bit_offset; 189 if (bit_offset) { 197 int pos = (bs->bit_offset >> 5); 198 int bit_offset = (bs->bit_offset & 0x1f) local 228 int bit_offset = (bs->bit_offset & 0x7); local [all...] |
avcenc.c | 730 int bit_offset; member in struct:__bitstream 770 bs->bit_offset = 0; 776 int pos = (bs->bit_offset >> 5); 777 int bit_offset = (bs->bit_offset & 0x1f); local 778 int bit_left = 32 - bit_offset; 780 if (bit_offset) { 788 int pos = (bs->bit_offset >> 5); 789 int bit_offset = (bs->bit_offset & 0x1f) local 844 int bit_offset = (bs->bit_offset & 0x7); local [all...] |
h264encode.c | 166 int bit_offset; member in struct:__bitstream 188 bs->bit_offset = 0; 194 int pos = (bs->bit_offset >> 5); 195 int bit_offset = (bs->bit_offset & 0x1f); local 196 int bit_left = 32 - bit_offset; 198 if (bit_offset) { 206 int pos = (bs->bit_offset >> 5); 207 int bit_offset = (bs->bit_offset & 0x1f) local 262 int bit_offset = (bs->bit_offset & 0x7); local [all...] |
/external/pdfium/core/fpdfapi/parser/ |
cpdf_hint_tables.cpp | 256 FX_SAFE_UINT32 bit_offset = offset; 257 bit_offset *= 8; 258 if (!bit_offset.IsValid() || hStream->GetPos() > bit_offset.ValueOrDie()) 260 hStream->SkipBits((bit_offset - hStream->GetPos()).ValueOrDie());
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/ |
vbp_mp42_parser.c | 776 uint32 bit_offset = 0; local 780 viddec_pm_get_au_pos(parent, &bit_offset, &byte_offset, &is_emul); 792 slice_param->macroblock_offset = bit_offset; 817 uint32 bit_offset = 0; local 839 viddec_pm_get_au_pos(parent, &bit_offset, &byte_offset, &is_emul); 862 slice_param->macroblock_offset = bit_offset; 876 viddec_pm_get_au_pos(parent, &bit_offset, &byte_offset, &is_emul); 877 if (bit_offset) { 878 getbits = viddec_pm_get_bits(parent, &code, 8 - bit_offset); 908 viddec_pm_get_au_pos(parent, &bit_offset, &byte_offset, &is_emul) [all...] |
/hardware/intel/common/libva/va/ |
va_fool.c | 298 codedbuf->bit_offset = 0; 323 codedbuf->bit_offset = 0;
|