/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_flag_parser.cc | 76 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/perfetto/include/perfetto/base/ |
D | string_writer.h | 42 PERFETTO_DCHECK(pos_ + n <= size_); 43 memset(&buffer_[pos_], in, n); 44 pos_ += n; 49 PERFETTO_DCHECK(pos_ + n <= size_); in AppendString() 50 memcpy(&buffer_[pos_], in, n); in AppendString() 51 pos_ += n; in AppendString() 76 PERFETTO_DCHECK(pos_ + kSizeNeeded <= size_); in AppendPaddedInt() 98 buffer_[pos_++] = '-'; in AppendPaddedInt() 107 snprintf(buffer_ + pos_, size_ - pos_, "%x", value)); in AppendHexInt() 108 PERFETTO_DCHECK(pos_ + res <= size_); in AppendHexInt() [all …]
|
D | circular_queue.h | 61 pos_(pos) in Iterator() 74 return queue_->Get(pos_); 128 return static_cast<ptrdiff_t>(lhs.pos_) - 129 static_cast<ptrdiff_t>(rhs.pos_); 133 return lhs.pos_ == rhs.pos_; 137 return lhs.pos_ != rhs.pos_; 141 return lhs.pos_ < rhs.pos_; 145 return lhs.pos_ <= rhs.pos_; 149 return lhs.pos_ > rhs.pos_; 153 return lhs.pos_ >= rhs.pos_; [all …]
|
/external/fonttools/Lib/fontTools/feaLib/ |
D | lexer.py | 39 self.pos_ = 0 58 column = self.pos_ - self.line_start_ + 1 64 start = self.pos_ 73 self.pos_ += 1 75 self.line_start_ = self.pos_ 78 self.pos_ += (2 if next_char == "\n" else 1) 80 self.line_start_ = self.pos_ 84 return (Lexer.COMMENT, text[start:self.pos_], location) 91 cur_char = text[self.pos_] if self.pos_ < limit else None 95 self.pos_ += 1 [all …]
|
/external/flatbuffers/tests/ |
D | monster_test_generated.lobster | 82 buf_.read_int16_le(pos_ + 0) 84 buf_.read_int8_le(pos_ + 2) 95 buf_.flatbuffers_field_int8(pos_, 4, 2) 108 buf_.read_float32_le(pos_ + 0) 110 buf_.read_float32_le(pos_ + 4) 112 buf_.read_float32_le(pos_ + 8) 114 buf_.read_float64_le(pos_ + 16) 116 buf_.read_int8_le(pos_ + 24) 118 MyGame_Example_Test{ buf_, pos_ + 26 } 138 buf_.read_int32_le(pos_ + 0) [all …]
|
/external/fonttools/Lib/fontTools/voltLib/ |
D | lexer.py | 25 self.pos_ = 0 44 column = self.pos_ - self.line_start_ + 1 46 start = self.pos_ 55 self.pos_ += 1 57 self.line_start_ = self.pos_ 60 self.pos_ += (2 if next_char == "\n" else 1) 62 self.line_start_ = self.pos_ 65 self.pos_ += 1 67 if self.pos_ < self.text_length_ and self.text_[self.pos_] == '"': 68 self.pos_ += 1 [all …]
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | inputbuffer.cc | 28 pos_(buf_), in InputBuffer() 39 pos_ = buf_; in FillBuffer() 40 limit_ = pos_ + data.size(); in FillBuffer() 49 size_t buf_remain = limit_ - pos_; in ReadLine() 50 char* newline = static_cast<char*>(memchr(pos_, '\n', buf_remain)); in ReadLine() 52 size_t result_len = newline - pos_; in ReadLine() 53 result->append(pos_, result_len); in ReadLine() 54 pos_ = newline + 1; in ReadLine() 60 if (buf_remain > 0) result->append(pos_, buf_remain); in ReadLine() 63 DCHECK_EQ(pos_, buf_); in ReadLine() [all …]
|
D | buffered_inputstream.cc | 45 pos_ = 0; in FillBuffer() 50 pos_ = 0; in FillBuffer() 63 if (pos_ == limit_) { in ReadLineHelper() 70 char c = buf_[pos_++]; in ReadLineHelper() 102 if (pos_ == limit_) { in ReadNBytes() 112 std::min<int64>(limit_ - pos_, bytes_to_read - result->size()); in ReadNBytes() 113 result->insert(result->size(), buf_, pos_, bytes_to_copy); in ReadNBytes() 114 pos_ += bytes_to_copy; in ReadNBytes() 131 if (pos_ + bytes_to_skip < limit_) { in SkipNBytes() 133 pos_ += bytes_to_skip; in SkipNBytes() [all …]
|
D | inputbuffer.h | 77 int64 Tell() const { return file_pos_ - (limit_ - pos_); } in Tell() 102 char* pos_; // Current position in "buf" variable 112 if (pos_ + core::kMaxVarint32Bytes <= limit_) { in ReadVarint32() 115 const char* offset = core::GetVarint32Ptr(pos_, limit_, result); in ReadVarint32() 117 pos_ = const_cast<char*>(offset); in ReadVarint32() 126 if (pos_ + core::kMaxVarint64Bytes <= limit_) { in ReadVarint64() 129 const char* offset = core::GetVarint64Ptr(pos_, limit_, result); in ReadVarint64() 131 pos_ = const_cast<char*>(offset); in ReadVarint64()
|
D | random_inputstream.cc | 41 Status s = file_->Read(pos_, bytes_to_read, &data, result_buffer); in ReadNBytes() 47 pos_ += data.size(); in ReadNBytes() 65 Status s = file_->Read(pos_ + bytes_to_skip - 1, 1, &data, scratch.get()); in SkipNBytes() 67 pos_ += bytes_to_skip; in SkipNBytes() 75 Status s = file_->Read(pos_, bytes_to_read, &data, scratch.get()); in SkipNBytes() 77 pos_ += data.size(); in SkipNBytes() 89 int64 RandomAccessInputStream::Tell() const { return pos_; } in Tell()
|
/external/v8/src/ |
D | label.h | 37 pos_ = other.pos_; 54 V8_INLINE void Unuse() { pos_ = 0; } in Unuse() 57 V8_INLINE bool is_bound() const { return pos_ < 0; } in is_bound() 58 V8_INLINE bool is_unused() const { return pos_ == 0 && near_link_pos_ == 0; } in is_unused() 59 V8_INLINE bool is_linked() const { return pos_ > 0; } in is_linked() 65 if (pos_ < 0) return -pos_ - 1; in pos() 66 if (pos_ > 0) return pos_ - 1; in pos() 79 int pos_ = 0; 85 pos_ = -pos - 1; in bind_to() 93 pos_ = pos + 1;
|
D | reloc-info.cc | 94 *--pos_ = b << kLastChunkTagBits; in WriteLongPCJump() 97 *pos_ = *pos_ | kLastChunkTag; in WriteLongPCJump() 105 *--pos_ = pc_delta << kTagBits | tag; in WriteShortTaggedPC() 109 *--pos_ = static_cast<byte>(data_delta); in WriteShortData() 114 *--pos_ = static_cast<int>((rmode << kTagBits) | kDefaultTag); in WriteMode() 121 *--pos_ = pc_delta; in WriteModeAndPC() 126 *--pos_ = static_cast<byte>(number); in WriteIntData() 134 *--pos_ = static_cast<byte>(data_delta); in WriteData() 143 byte* begin_pos = pos_; in Write() 156 DCHECK_LE(begin_pos - pos_, RelocInfo::kMaxCallSize); in Write() [all …]
|
/external/v8/src/wasm/ |
D | wasm-module-builder.h | 26 pos_ = buffer_; in zone_() 32 *(pos_++) = x; in write_u8() 37 WriteLittleEndianValue<uint16_t>(reinterpret_cast<Address>(pos_), x); in write_u16() 38 pos_ += 2; in write_u16() 43 WriteLittleEndianValue<uint32_t>(reinterpret_cast<Address>(pos_), x); in write_u32() 44 pos_ += 4; in write_u32() 49 WriteLittleEndianValue<uint64_t>(reinterpret_cast<Address>(pos_), x); in write_u64() 50 pos_ += 8; in write_u64() 55 LEBHelper::write_u32v(&pos_, val); in write_u32v() 60 LEBHelper::write_i32v(&pos_, val); in write_i32v() [all …]
|
/external/flatbuffers/samples/ |
D | monster_generated.lobster | 24 buf_.read_float32_le(pos_ + 0) 26 buf_.read_float32_le(pos_ + 4) 28 buf_.read_float32_le(pos_ + 8) 39 o := buf_.flatbuffers_field_struct(pos_, 4) 42 buf_.flatbuffers_field_int16(pos_, 6, 150) 44 buf_.flatbuffers_field_int16(pos_, 8, 100) 46 buf_.flatbuffers_field_string(pos_, 10) 48 buf_.read_int8_le(buf_.flatbuffers_field_vector(pos_, 14) + i * 1) 50 buf_.flatbuffers_field_vector_len(pos_, 14) 52 buf_.flatbuffers_field_int8(pos_, 16, 2) [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BytesTrie.java | 47 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 …]
|
D | CharsTrie.java | 50 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/android_icu4j/src/main/java/android/icu/util/ |
D | BytesTrie.java | 47 pos_=root_=offset; in BytesTrie() 66 pos_=root_; in reset() 96 state.pos=pos_; in saveState() 112 pos_=state.pos; in resetToState() 183 int pos=pos_; in current() 215 int pos=pos_; in next() 227 pos_=pos; in next() 259 int pos=pos_; in next() 271 pos_=pos; in next() 305 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next() [all …]
|
D | CharsTrie.java | 50 pos_=root_=offset; in CharsTrie() 69 pos_=root_; in reset() 99 state.pos=pos_; in saveState() 115 pos_=state.pos; in resetToState() 129 int pos=pos_; in current() 171 int pos=pos_; in next() 180 pos_=pos; in next() 226 int pos=pos_; in next() 238 pos_=pos; in next() 272 pos=pos_; // branchNext() advanced pos and wrote it to pos_ . in next() [all …]
|
/external/icu/icu4c/source/common/ |
D | bytestrieiterator.cpp | 28 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 …]
|
D | ucharstrieiterator.cpp | 27 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 …]
|
/external/brotli/c/enc/ |
D | ringbuffer.h | 41 uint32_t pos_; member 51 rb->pos_ = 0; in RingBufferInit() 95 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWriteTail() 107 if (rb->pos_ == 0 && n < rb->tail_size_) { in RingBufferWrite() 114 rb->pos_ = (uint32_t)n; in RingBufferWrite() 115 RingBufferInitBuffer(m, rb->pos_, rb); in RingBufferWrite() 130 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWrite() 148 BROTLI_BOOL not_first_lap = (rb->pos_ & (1u << 31)) != 0; in RingBufferWrite() 152 rb->pos_ = (rb->pos_ & rb_pos_mask) + (uint32_t)(n & rb_pos_mask); in RingBufferWrite() 155 rb->pos_ |= 1u << 31; in RingBufferWrite()
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | csv_dataset_op.cc | 277 TF_RETURN_IF_ERROR(writer->WriteScalar(full_name("pos"), pos_)); in SaveInternal() 320 pos_ = size_t(pos); in RestoreInternal() 337 if (pos_ >= buffer_.size()) { in ReadRecord() 340 pos_ = 0; in ReadRecord() 376 if (pos_ >= buffer_.size()) { in ParseOneField() 393 pos_ = 0; in ParseOneField() 396 if (dataset()->use_quote_delim_ && buffer_[pos_] == '"') { in ParseOneField() 422 if (include && pos_ > *start) { in SaveAndFillBuffer() 424 Piece(std::move(temp_buffer), *start, pos_ - *start)); in SaveAndFillBuffer() 426 pos_ = 0; in SaveAndFillBuffer() [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | bytestrie.h | 68 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 …]
|
D | ucharstrie.h | 68 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 char16_t *pos=pos_; in getValue() 240 const char16_t *pos=pos_; in hasUniqueValue() 334 pos_=NULL; in truncateAndStop() 342 const char16_t *pos_; variable 373 pos_(uchars_), remainingMatchLength_(-1) {} in UCharsTrie() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_compressed_op.cc | 33 : buf_(buffer), len_(length), pos_(0) {} in MemoryInputStream() 45 if (pos_ + bytes_to_read > len_) { in ReadNBytes() 46 bytes = len_ - pos_; in ReadNBytes() 51 memcpy(&(*result)[0], &buf_[pos_], bytes); in ReadNBytes() 52 pos_ += bytes; in ReadNBytes() 57 int64 Tell() const override { return pos_; } in Tell() 60 pos_ = 0; in Reset() 67 int64 pos_ = 0; // Tracks where we are in the file. member in tensorflow::__anon384e59da0111::MemoryInputStream
|