Home
last modified time | relevance | path

Searched refs:pos_ (Results 1 – 25 of 49) sorted by relevance

12

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_flag_parser.cc76 while (is_space(buf_[pos_])) ++pos_; in skip_whitespace()
80 uptr name_start = pos_; in parse_flag()
81 while (buf_[pos_] != 0 && buf_[pos_] != '=' && !is_space(buf_[pos_])) ++pos_; in parse_flag()
82 if (buf_[pos_] != '=') fatal_error("expected '='"); in parse_flag()
83 char *name = ll_strndup(buf_ + name_start, pos_ - name_start); in parse_flag()
85 uptr value_start = ++pos_; in parse_flag()
87 if (buf_[pos_] == '\'' || buf_[pos_] == '"') { in parse_flag()
88 char quote = buf_[pos_++]; in parse_flag()
89 while (buf_[pos_] != 0 && buf_[pos_] != quote) ++pos_; in parse_flag()
90 if (buf_[pos_] == 0) fatal_error("unterminated string"); in parse_flag()
[all …]
/external/v8/src/
Dlog-utils.cc107 pos_(0) { in MessageBuilder()
113 Vector<char> buf(log_->message_buffer_ + pos_, in Append()
114 Log::kMessageBufferSize - pos_); in Append()
119 DCHECK(pos_ <= Log::kMessageBufferSize); in Append()
124 Vector<char> buf(log_->message_buffer_ + pos_, in AppendVA()
125 Log::kMessageBufferSize - pos_); in AppendVA()
130 pos_ += result; in AppendVA()
132 pos_ = Log::kMessageBufferSize; in AppendVA()
134 DCHECK(pos_ <= Log::kMessageBufferSize); in AppendVA()
139 if (pos_ < Log::kMessageBufferSize) { in Append()
[all …]
Dassembler.cc260 if (pos_ < 0) return -pos_ - 1; in pos()
261 if (pos_ > 0) return pos_ - 1; in pos()
406 *--pos_ = b << kLastChunkTagBits; in WriteLongPCJump()
409 *pos_ = *pos_ | kLastChunkTag; in WriteLongPCJump()
418 *--pos_ = pc_delta << kTagBits | tag; in WriteShortTaggedPC()
423 *--pos_ = static_cast<byte>(data_delta << kShortDataTypeTagBits | tag); in WriteShortTaggedData()
429 *--pos_ = static_cast<int>((rmode << kTagBits) | kDefaultTag); in WriteMode()
437 *--pos_ = pc_delta; in WriteModeAndPC()
443 *--pos_ = static_cast<byte>(number); in WriteIntData()
452 *--pos_ = static_cast<byte>(data_delta); in WriteData()
[all …]
Dassembler.h297 INLINE(void Unuse()) { pos_ = 0; } in INLINE()
300 INLINE(bool is_bound() const) { return pos_ < 0; } in INLINE()
301 INLINE(bool is_unused() const) { return pos_ == 0 && near_link_pos_ == 0; } in INLINE()
302 INLINE(bool is_linked() const) { return pos_ > 0; } in INLINE()
317 int pos_;
323 pos_ = -pos - 1; in bind_to()
331 pos_ = pos + 1;
702 RelocInfoWriter() : pos_(NULL), last_pc_(NULL), last_id_(0) {} in RelocInfoWriter()
703 RelocInfoWriter(byte* pos, byte* pc) : pos_(pos), last_pc_(pc), last_id_(0) {} in RelocInfoWriter()
705 byte* pos() const { return pos_; } in pos()
[all …]
/external/libchrome/base/json/
Djson_parser.cc196 pos_(nullptr), in JSONParser()
221 pos_ = start_pos_; in Parse()
235 if (CanConsume(3) && static_cast<uint8_t>(*pos_) == 0xEF && in Parse()
236 static_cast<uint8_t>(*(pos_ + 1)) == 0xBB && in Parse()
237 static_cast<uint8_t>(*(pos_ + 2)) == 0xBF) { in Parse()
299 : pos_(pos), in StringBuilder()
306 std::swap(other->pos_, pos_); in Swap()
332 string_ = new std::string(pos_, length_); in Convert()
342 return StringPiece(pos_, length_); in AsStringPiece()
354 return pos_ + length <= end_pos_; in CanConsume()
[all …]
Djson_parser_unittest.cc23 parser->pos_ = parser->start_pos_; in NewTestParser()
32 EXPECT_EQ(parser->end_pos_, parser->pos_); in TestLastThree()
40 EXPECT_EQ('H', *parser->pos_); in TEST_F()
51 EXPECT_EQ('"', *parser->pos_); in TEST_F()
65 EXPECT_EQ(']', *parser->pos_); in TEST_F()
79 EXPECT_EQ('}', *parser->pos_); in TEST_F()
96 EXPECT_EQ('e', *parser->pos_); in TEST_F()
109 EXPECT_EQ('e', *parser->pos_); in TEST_F()
121 EXPECT_EQ('l', *parser->pos_); in TEST_F()
134 EXPECT_EQ('4', *parser->pos_); in TEST_F()
[all …]
/external/v8/src/wasm/
Dwasm-module-builder.h26 pos_ = buffer_; in zone_()
32 *(pos_++) = x; in write_u8()
37 WriteLittleEndianValue<uint16_t>(pos_, x); in write_u16()
38 pos_ += 2; in write_u16()
43 WriteLittleEndianValue<uint32_t>(pos_, x); in write_u32()
44 pos_ += 4; in write_u32()
49 LEBHelper::write_u32v(&pos_, val); in write_u32v()
54 LEBHelper::write_i32v(&pos_, val); in write_i32v()
60 LEBHelper::write_u32v(&pos_, static_cast<uint32_t>(val)); in write_size()
65 memcpy(pos_, data, size); in write()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DBytesTrie.java47 pos_=root_=offset; in BytesTrie()
66 pos_=root_; in reset()
95 state.pos=pos_; in saveState()
111 pos_=state.pos; in resetToState()
181 int pos=pos_; in current()
213 int pos=pos_; in next()
225 pos_=pos; in next()
257 int pos=pos_; in next()
269 pos_=pos; in next()
303 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next()
[all …]
DCharsTrie.java50 pos_=root_=offset; in CharsTrie()
69 pos_=root_; in reset()
98 state.pos=pos_; in saveState()
114 pos_=state.pos; in resetToState()
128 int pos=pos_; in current()
170 int pos=pos_; in next()
179 pos_=pos; in next()
225 int pos=pos_; in next()
237 pos_=pos; in next()
271 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DBytesTrie.java47 pos_=root_=offset; in BytesTrie()
68 pos_=root_; in reset()
100 state.pos=pos_; in saveState()
117 pos_=state.pos; in resetToState()
196 int pos=pos_; in current()
230 int pos=pos_; in next()
242 pos_=pos; in next()
275 int pos=pos_; in next()
287 pos_=pos; in next()
321 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next()
[all …]
DCharsTrie.java50 pos_=root_=offset; in CharsTrie()
71 pos_=root_; in reset()
103 state.pos=pos_; in saveState()
120 pos_=state.pos; in resetToState()
135 int pos=pos_; in current()
180 int pos=pos_; in next()
189 pos_=pos; in next()
237 int pos=pos_; in next()
249 pos_=pos; in next()
283 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next()
[all …]
/external/icu/icu4c/source/common/
Dbytestrieiterator.cpp28 pos_(bytes_), initialPos_(bytes_), in Iterator()
49 : bytes_(trie.bytes_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
72 str_->append(reinterpret_cast<const char *>(pos_), length, errorCode); in Iterator()
73 pos_+=length; in Iterator()
85 pos_=initialPos_; in reset()
92 pos_+=length; in reset()
99 BytesTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext()
106 const uint8_t *pos=pos_; in next()
140 pos_=NULL; in next()
142 pos_=skipValue(pos, node); in next()
[all …]
Ducharstrieiterator.cpp27 pos_(uchars_), initialPos_(uchars_), in Iterator()
48 : uchars_(trie.uchars_), pos_(trie.pos_), initialPos_(trie.pos_), in Iterator()
71 str_.append(pos_, length); in Iterator()
72 pos_+=length; in Iterator()
83 pos_=initialPos_; in reset()
91 pos_+=length; in reset()
98 UCharsTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext()
105 const UChar *pos=pos_; in next()
148 pos_=NULL; in next()
154 pos_=pos-1; in next()
[all …]
Ducharstrie.cpp33 const UChar *pos=pos_; in current()
107 pos_=pos; in branchNext()
114 pos_=pos; in branchNext()
134 pos_=pos; in nextImpl()
156 const UChar *pos=pos_; in next()
165 pos_=pos; in next()
183 const UChar *pos=pos_; in next()
196 pos_=pos; in next()
216 pos_=pos; in next()
259 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next()
[all …]
Dbytestrie.cpp70 const uint8_t *pos=pos_; in current()
134 pos_=pos; in branchNext()
141 pos_=pos; in branchNext()
161 pos_=pos; in nextImpl()
184 const uint8_t *pos=pos_; in next()
196 pos_=pos; in next()
214 const uint8_t *pos=pos_; in next()
227 pos_=pos; in next()
247 pos_=pos; in next()
290 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next()
[all …]
/external/icu/icu4c/source/common/unicode/
Dbytestrie.h68 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie()
84 pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {} in BytesTrie()
92 pos_=bytes_; in reset()
126 state.pos=pos_; in saveState()
143 pos_=state.pos; in resetToState()
209 const uint8_t *pos=pos_; in getValue()
225 const uint8_t *pos=pos_; in hasUniqueValue()
324 const uint8_t *pos_; variable
355 pos_(bytes_), remainingMatchLength_(-1) {} in BytesTrie()
361 pos_=NULL; in stop()
[all …]
Ducharstrie.h68 pos_(uchars_), remainingMatchLength_(-1) {} in UCharsTrie()
84 pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {} in UCharsTrie()
92 pos_=uchars_; in reset()
126 state.pos=pos_; in saveState()
143 pos_=state.pos; in resetToState()
223 const UChar *pos=pos_; in getValue()
240 const UChar *pos=pos_; in hasUniqueValue()
334 pos_=NULL; in truncateAndStop()
342 const UChar *pos_; variable
373 pos_(uchars_), remainingMatchLength_(-1) {} in UCharsTrie()
[all …]
/external/webp/src/utils/
Dbit_reader_utils.c159 br->pos_ = length; in VP8LInitBitReader()
171 br->eos_ = (br->pos_ > br->len_) || VP8LIsEndOfStream(br); in VP8LBitReaderSetBuffer()
181 while (br->bit_pos_ >= 8 && br->pos_ < br->len_) { in ShiftBytes()
183 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (VP8L_LBITS - 8); in ShiftBytes()
184 ++br->pos_; in ShiftBytes()
195 if (br->pos_ + sizeof(br->val_) < br->len_) { in VP8LDoFillBitWindow()
198 br->val_ |= (vp8l_val_t)HToLE32(WebPMemToUint32(br->buf_ + br->pos_)) << in VP8LDoFillBitWindow()
200 br->pos_ += VP8L_LOG8_WBITS; in VP8LDoFillBitWindow()
Dbit_writer_utils.c29 const uint64_t needed_size_64b = (uint64_t)bw->pos_ + extra_size; in BitWriterResize()
45 if (bw->pos_ > 0) { in BitWriterResize()
47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize()
62 size_t pos = bw->pos_; in Flush()
74 bw->pos_ = pos; in Flush()
167 bw->pos_ = 0; in VP8BitWriterInit()
186 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend()
187 bw->pos_ += size; in VP8BitWriterAppend()
Dbit_writer_utils.h33 size_t pos_; member
58 return (bw->pos_ + bw->run_) * 8 + nb_bits; in VP8BitWriterPos()
67 return bw->pos_; in VP8BitWriterSize()
Dbit_reader_utils.h125 size_t pos_; // byte position in buf_ member
152 assert(br->pos_ <= br->len_); in VP8LIsEndOfStream()
153 return br->eos_ || ((br->pos_ == br->len_) && (br->bit_pos_ > VP8L_LBITS)); in VP8LIsEndOfStream()
/external/webrtc/webrtc/common_audio/
Dwav_header_unittest.cc24 pos_(0), in ReadableWavBuffer()
30 pos_(0), in ReadableWavBuffer()
37 EXPECT_EQ(size_, pos_); in ~ReadableWavBuffer()
43 EXPECT_GE(size_, pos_ + num_bytes); in Read()
46 const size_t bytes_remaining = size_ - pos_; in Read()
54 memcpy(buf, &buf_[pos_], num_bytes); in Read()
55 pos_ += num_bytes; in Read()
62 size_t pos_; member in webrtc::ReadableWavBuffer
/external/gemmlowp/internal/
Dpack.h55 pos_(0) { in PackedSideBlock()
68 pos_ = params_.l2_width * start_depth + start_width * kernel_run_depth; in seek_run()
71 void seek_next_cell() const { pos_ += KernelSideFormat::Cell::kSize; } in seek_next_cell()
74 pos_ += n * KernelSideFormat::Cell::kSize; in seek_forward_n_cells()
78 return allocator_->GetPointer<std::uint8_t>(data_handle_) + pos_; in current_data()
82 return allocator_->GetPointer<std::uint8_t>(data_handle_) + pos_; in current_data()
125 mutable int pos_; variable
/external/v8/src/third_party/vtune/
Dvtune-jit.cc84 : pc_(pc), pos_(pos) { } in LineNumInfo()
87 int pos_; member
211 script->GetLineNumber(Iter->pos_) + 1; in event_handler()
/external/vulkan-validation-layers/demos/smoke/
DSimulation.cpp147 pos_ += unit_dir_ * (t - last_); in evaluate()
150 return pos_; in evaluate()
165 pos_ = segment_start_; in new_segment()
179 glm::vec3 pos_; member in __anonaac04e910211::RandomCurve

12