Home
last modified time | relevance | path

Searched refs:byte_offset (Results 1 – 25 of 93) sorted by relevance

1234

/external/rust/crates/serde_json/tests/
Dstream.rs12 assert_eq!($stream.byte_offset(), 0);
18 assert_eq!($stream.byte_offset(), 0);
25 assert_eq!($stream.byte_offset(), 0);
37 assert_eq!(stream.byte_offset(), 8); in test_json_stream_newlines()
40 assert_eq!(stream.byte_offset(), 17); in test_json_stream_newlines()
43 assert_eq!(stream.byte_offset(), 25); in test_json_stream_newlines()
46 assert_eq!(stream.byte_offset(), 34); in test_json_stream_newlines()
49 assert_eq!(stream.byte_offset(), 34); in test_json_stream_newlines()
59 assert_eq!(stream.byte_offset(), 8); in test_json_stream_trailing_whitespaces()
62 assert_eq!(stream.byte_offset(), 11); in test_json_stream_trailing_whitespaces()
[all …]
/external/mesa3d/src/intel/compiler/
Dbrw_eu_util.c64 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy4()
65 brw_MOV(p, byte_offset(dst, delta+16), byte_offset(src, delta+16)); in brw_copy4()
83 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy8()
116 brw_MOV(p, byte_offset(dst, delta), deref_4f(ptr, delta)); in brw_copy_from_indirect()
117 brw_MOV(p, byte_offset(dst, delta+16), deref_4f(ptr, delta+16)); in brw_copy_from_indirect()
Dbrw_clip_unfilled.c49 struct brw_reg v0 = byte_offset(c->reg.vertex[0], hpos_offset); in compute_tri_direction()
50 struct brw_reg v1 = byte_offset(c->reg.vertex[1], hpos_offset); in compute_tri_direction()
51 struct brw_reg v2 = byte_offset(c->reg.vertex[2], hpos_offset); in compute_tri_direction()
156 byte_offset(c->reg.vertex[i], in copy_bfc()
159 byte_offset(c->reg.vertex[i], in copy_bfc()
166 byte_offset(c->reg.vertex[i], in copy_bfc()
169 byte_offset(c->reg.vertex[i], in copy_bfc()
245 brw_MOV(p, byte_offset(c->reg.vertex[0], in merge_edgeflags()
253 brw_MOV(p, byte_offset(c->reg.vertex[2], in merge_edgeflags()
Dbrw_ir_vec4.h100 byte_offset(src_reg reg, unsigned bytes) in byte_offset() function
111 return byte_offset(reg, num_components * type_sz(reg.type) * delta); in offset()
117 return byte_offset(reg, delta * type_sz(reg.type)); in horiz_offset()
181 byte_offset(dst_reg reg, unsigned bytes) in byte_offset() function
192 return byte_offset(reg, num_components * type_sz(reg.type) * delta); in offset()
201 return byte_offset(reg, delta * type_sz(reg.type)); in horiz_offset()
Dbrw_nir_analyze_ubo_ranges.c155 const unsigned byte_offset = nir_src_as_uint(intrin->src[1]); in analyze_ubos_block() local
156 const int offset = byte_offset / 32; in analyze_ubos_block()
170 const int start = ROUND_DOWN_TO(byte_offset, 32); in analyze_ubos_block()
171 const int end = ALIGN(byte_offset + bytes, 32); in analyze_ubos_block()
/external/igt-gpu-tools/assembler/
Dbrw_eu_util.c66 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy4()
67 brw_MOV(p, byte_offset(dst, delta+16), byte_offset(src, delta+16)); in brw_copy4()
85 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy8()
118 brw_MOV(p, byte_offset(dst, delta), deref_4f(ptr, delta)); in brw_copy_from_indirect()
119 brw_MOV(p, byte_offset(dst, delta+16), deref_4f(ptr, delta+16)); in brw_copy_from_indirect()
/external/libgav1/libgav1/src/utils/
Draw_bit_reader.cc52 const size_t byte_offset = DivideBy8(bit_offset_, false); in ReadBitImpl() local
53 const uint8_t byte = data_[byte_offset]; in ReadBitImpl()
102 size_t byte_offset = DivideBy8(bit_offset_, false); in ReadLittleEndian() local
103 if (Finished() || byte_offset + num_bytes > size_) { in ReadLittleEndian()
109 const size_t byte = data_[byte_offset]; in ReadLittleEndian()
111 ++byte_offset; in ReadLittleEndian()
113 bit_offset_ = byte_offset * 8; in ReadLittleEndian()
127 const size_t byte_offset = DivideBy8(bit_offset_, false); in ReadUnsignedLeb128() local
128 const uint8_t byte = data_[byte_offset]; in ReadUnsignedLeb128()
/external/libbrillo/brillo/
Dpointer_utils.h15 inline void* AdvancePointer(void* pointer, ssize_t byte_offset) { in AdvancePointer() argument
16 return reinterpret_cast<uint8_t*>(pointer) + byte_offset; in AdvancePointer()
18 inline const void* AdvancePointer(const void* pointer, ssize_t byte_offset) { in AdvancePointer() argument
19 return reinterpret_cast<const uint8_t*>(pointer) + byte_offset; in AdvancePointer()
/external/webrtc/modules/audio_coding/codecs/
Dlegacy_encoded_audio_frame.cc71 size_t byte_offset; in SplitBySamples() local
73 for (byte_offset = 0, timestamp_offset = 0; byte_offset < payload.size(); in SplitBySamples()
74 byte_offset += split_size_bytes, in SplitBySamples()
77 std::min(split_size_bytes, payload.size() - byte_offset); in SplitBySamples()
78 rtc::Buffer new_payload(payload.data() + byte_offset, split_size_bytes); in SplitBySamples()
/external/vixl/test/
Dtest-utils.cc51 void ExecuteMemory(byte* buffer, size_t size, int byte_offset) { in ExecuteMemory() argument
54 VIXL_ASSERT((byte_offset >= 0) && (static_cast<size_t>(byte_offset) < size)); in ExecuteMemory()
58 entry_point += byte_offset; in ExecuteMemory()
/external/webrtc/modules/audio_coding/codecs/ilbc/
Daudio_decoder_ilbc.cc88 size_t byte_offset; in ParsePayload() local
90 for (byte_offset = 0, timestamp_offset = 0; byte_offset < payload.size(); in ParsePayload()
91 byte_offset += bytes_per_frame, in ParsePayload()
94 this, rtc::Buffer(payload.data() + byte_offset, bytes_per_frame))); in ParsePayload()
/external/libxaac/decoder/
Dixheaacd_common_initfuncs.c160 WORD32 byte_offset; in ixheaacd_read_bidirection() local
169 byte_offset = it_bit_buff->bit_pos >> 3; in ixheaacd_read_bidirection()
170 it_bit_buff->bit_pos = it_bit_buff->bit_pos - (byte_offset << 3); in ixheaacd_read_bidirection()
172 if (byte_offset) { in ixheaacd_read_bidirection()
177 ptr_read_next = ptr_read_next - (byte_offset); in ixheaacd_read_bidirection()
/external/e2fsprogs/ext2ed/
Dinodebitmap_com.c138 int byte_offset,j; in allocate_inode() local
140 byte_offset=entry_num/8; in allocate_inode()
143 type_data.u.buffer [byte_offset] |= bit_mask; in allocate_inode()
150 int byte_offset,j; in deallocate_inode() local
152 byte_offset=entry_num/8; in deallocate_inode()
157 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_inode()
Dblockbitmap_com.c178 int byte_offset,j; in allocate_block() local
180 byte_offset=entry_num/8; /* Find the correct byte - entry_num/8 */ in allocate_block()
184 type_data.u.buffer [byte_offset] |= bit_mask; /* And apply it */ in allocate_block()
193 int byte_offset,j; in deallocate_block() local
195 byte_offset=entry_num/8; in deallocate_block()
200 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_block()
/external/mesa3d/src/compiler/nir/
Dnir_lower_ubo_vec4.c98 nir_ssa_def *byte_offset = nir_ssa_for_src(b, intr->src[1], 1); in nir_lower_ubo_vec4_lower() local
99 nir_ssa_def *vec4_offset = nir_ushr_imm(b, byte_offset, 4); in nir_lower_ubo_vec4_lower()
139 nir_udiv_imm(b, byte_offset, chan_size_bytes), in nir_lower_ubo_vec4_lower()
153 nir_i2b(b, nir_iand_imm(b, byte_offset, 8)), in nir_lower_ubo_vec4_lower()
169 nir_ssa_def *chan_byte_offset = nir_iadd_imm(b, byte_offset, i * chan_size_bytes); in nir_lower_ubo_vec4_lower()
/external/mesa3d/src/freedreno/ir3/
Dir3_a4xx.c43 struct ir3_instruction *ldgb, *src0, *src1, *byte_offset, *offset; in emit_intrinsic_load_ssbo() local
47 byte_offset = ir3_get_src(ctx, &intr->src[1])[0]; in emit_intrinsic_load_ssbo()
52 byte_offset, in emit_intrinsic_load_ssbo()
74 struct ir3_instruction *stgb, *src0, *src1, *src2, *byte_offset, *offset; in emit_intrinsic_store_ssbo() local
82 byte_offset = ir3_get_src(ctx, &intr->src[2])[0]; in emit_intrinsic_store_ssbo()
91 byte_offset, in emit_intrinsic_store_ssbo()
126 struct ir3_instruction *atomic, *ssbo, *src0, *src1, *src2, *byte_offset, in emit_intrinsic_atomic_ssbo() local
132 byte_offset = ir3_get_src(ctx, &intr->src[1])[0]; in emit_intrinsic_atomic_ssbo()
144 byte_offset, in emit_intrinsic_atomic_ssbo()
/external/webrtc/rtc_base/
Dbit_buffer_unittest.cc149 size_t byte_offset, bit_offset; in TEST() local
153 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
154 EXPECT_EQ(0u, byte_offset); in TEST()
157 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
158 EXPECT_EQ(0u, byte_offset); in TEST()
164 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
165 EXPECT_EQ(2u, byte_offset); in TEST()
169 buffer.GetCurrentOffset(&byte_offset, &bit_offset); in TEST()
170 EXPECT_EQ(4u, byte_offset); in TEST()
179 EXPECT_DEATH(buffer.GetCurrentOffset(&byte_offset, nullptr), ""); in TEST()
/external/python/cpython2/Modules/_ctypes/libffi_osx/x86/
Dx86-ffi64.c142 size_t byte_offset) in classify_argument() argument
156 if (byte_offset + type->size <= 4) in classify_argument()
164 int size = byte_offset + type->size; in classify_argument()
193 if (byte_offset == 0) in classify_argument()
228 byte_offset = ALIGN(byte_offset, (*ptr)->alignment); in classify_argument()
230 int num = classify_argument(*ptr, subclasses, byte_offset % 8); in classify_argument()
235 int pos = byte_offset / 8; in classify_argument()
243 byte_offset += (*ptr)->size; in classify_argument()
/external/python/cpython3/Modules/_ctypes/libffi_osx/x86/
Dx86-ffi64.c142 size_t byte_offset) in classify_argument() argument
156 if (byte_offset + type->size <= 4) in classify_argument()
164 int size = byte_offset + type->size; in classify_argument()
193 if (byte_offset == 0) in classify_argument()
230 byte_offset = ALIGN(byte_offset, (*ptr)->alignment); in classify_argument()
232 num = classify_argument(*ptr, subclasses, byte_offset % 8); in classify_argument()
237 pos = byte_offset / 8; in classify_argument()
245 byte_offset += (*ptr)->size; in classify_argument()
/external/perfetto/src/trace_processor/importers/fuchsia/
Dfuchsia_trace_tokenizer.cc93 size_t byte_offset = 0; in Parse() local
99 leftover_bytes_.insert(leftover_bytes_.end(), blob.data() + byte_offset, in Parse()
110 leftover_bytes_.insert(leftover_bytes_.end(), blob.data() + byte_offset, in Parse()
112 byte_offset += needed_bytes; in Parse()
134 memcpy(buf.data() + leftover_bytes_.size(), blob.data() + byte_offset, in Parse()
136 byte_offset += missing_bytes; in Parse()
143 leftover_bytes_.insert(leftover_bytes_.end(), blob.data() + byte_offset, in Parse()
144 blob.data() + byte_offset + size); in Parse()
149 TraceBlobView full_view = blob.slice_off(byte_offset, size); in Parse()
/external/python/cpython2/Modules/_ctypes/libffi/src/x86/
Dffi64.c157 size_t byte_offset) in classify_argument() argument
171 size_t size = byte_offset + type->size; in classify_argument()
198 if (!(byte_offset % 8)) in classify_argument()
240 byte_offset = ALIGN (byte_offset, (*ptr)->alignment); in classify_argument()
242 num = classify_argument (*ptr, subclasses, byte_offset % 8); in classify_argument()
247 size_t pos = byte_offset / 8; in classify_argument()
252 byte_offset += (*ptr)->size; in classify_argument()
/external/webrtc/common_video/h264/
Dpps_parser_unittest.cc127 size_t byte_offset; in WritePps() local
129 bit_buffer.GetCurrentOffset(&byte_offset, &bit_offset); in WritePps()
132 bit_buffer.GetCurrentOffset(&byte_offset, &bit_offset); in WritePps()
135 H264::WriteRbsp(data, byte_offset, out_buffer); in WritePps()
Dsps_vui_rewriter.cc148 size_t byte_offset; in ParseAndRewriteSps() local
150 source_buffer.GetCurrentOffset(&byte_offset, &bit_offset); in ParseAndRewriteSps()
152 byte_offset + (bit_offset > 0 ? 1 : 0)); // OK to copy the last bits. in ParseAndRewriteSps()
157 --byte_offset; in ParseAndRewriteSps()
162 sps_writer.Seek(byte_offset, bit_offset); in ParseAndRewriteSps()
182 sps_writer.GetCurrentOffset(&byte_offset, &bit_offset); in ParseAndRewriteSps()
185 ++byte_offset; in ParseAndRewriteSps()
189 RTC_DCHECK(byte_offset <= length + kMaxVuiSpsIncrease); in ParseAndRewriteSps()
192 out_buffer.SetSize(byte_offset); in ParseAndRewriteSps()
/external/libffi/src/x86/
Dffi64.c161 size_t byte_offset) in classify_argument() argument
176 size_t size = byte_offset + type->size; in classify_argument()
203 if (!(byte_offset % 8)) in classify_argument()
246 byte_offset = FFI_ALIGN (byte_offset, (*ptr)->alignment); in classify_argument()
248 num = classify_argument (*ptr, subclasses, byte_offset % 8); in classify_argument()
253 size_t pos = byte_offset / 8; in classify_argument()
258 byte_offset += (*ptr)->size; in classify_argument()
324 if (byte_offset % 8) in classify_argument()
/external/puffin/src/
Dutils.cc38 uint64_t byte_offset; member
48 byte_offset = (extent.offset + 7) / 8; in ExtentData()
51 if (byte_end_offset > byte_offset) { in ExtentData()
52 byte_length = byte_end_offset - byte_offset; in ExtentData()
62 return memcmp(data.data() + byte_offset, in Compare()
63 other.data.data() + other.byte_offset, in Compare()

1234