/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/tensorflow/tensorflow/core/framework/ |
D | tensor_reference.h | 38 if (buf_) buf_->Unref(); in Unref() 44 return 128 + (buf_ ? buf_->size() : 0); in TotalBytes() 48 if (buf_) buf_->FillAllocationDescription(description); in FillDescription() 53 return buf_ == t.buf_; in SharesBufferWith() 58 return buf_ == (t.buf_ ? t.buf_->root_buffer() : nullptr); in SharesBufferWith() 62 size_t BufferHash() const { return std::hash<TensorBuffer*>()(buf_); } in BufferHash() 65 explicit TensorReference(TensorBuffer* test_buffer) : buf_(test_buffer) { in TensorReference() 66 if (buf_) buf_->Ref(); in TensorReference() 70 TensorBuffer* buf_;
|
D | tensor.cc | 607 Tensor::Tensor(DataType type) : shape_({0}), buf_(nullptr) { set_dtype(type); } in Tensor() 610 : shape_(shape), buf_(buf) { in Tensor() 616 return (buf_ != nullptr && buf_->data() != nullptr) || in IsInitialized() 638 Tensor::~Tensor() { UnrefIfNonNull(buf_); } in ~Tensor() 647 if (buf_ != other.buf_) { in CopyFromInternal() 648 UnrefIfNonNull(buf_); in CopyFromInternal() 649 buf_ = other.buf_; in CopyFromInternal() 650 RefIfNonNull(buf_); in CopyFromInternal() 671 if (buf_ != other.buf_) { in BitcastFrom() 672 UnrefIfNonNull(buf_); in BitcastFrom() [all …]
|
D | tensor_reference.cc | 21 : buf_(tensor.buf_ ? tensor.buf_->root_buffer() : nullptr) { in TensorReference() 22 if (buf_) buf_->Ref(); in TensorReference()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_flag_parser.cc | 76 while (is_space(buf_[pos_])) ++pos_; in skip_whitespace() 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() 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() 91 value = ll_strndup(buf_ + value_start + 1, pos_ - value_start - 1); in parse_flag() 94 while (buf_[pos_] != 0 && !is_space(buf_[pos_])) ++pos_; in parse_flag() [all …]
|
/external/webp/src/utils/ |
D | bit_writer_utils.c | 46 assert(bw->buf_ != NULL); in BitWriterResize() 47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 49 WebPSafeFree(bw->buf_); in BitWriterResize() 50 bw->buf_ = new_buf; in BitWriterResize() 67 if (pos > 0) bw->buf_[pos - 1]++; in Flush() 71 for (; bw->run_ > 0; --bw->run_) bw->buf_[pos++] = value; in Flush() 73 bw->buf_[pos++] = bits; in Flush() 170 bw->buf_ = NULL; in VP8BitWriterInit() 178 return bw->buf_; in VP8BitWriterFinish() 186 memcpy(bw->buf_ + bw->pos_, data, size); in VP8BitWriterAppend() [all …]
|
D | bit_reader_utils.c | 27 br->buf_ = start; in VP8BitReaderSetBuffer() 48 if (br->buf_ != NULL) { in VP8RemapBitReader() 49 br->buf_ += offset; in VP8RemapBitReader() 88 assert(br != NULL && br->buf_ != NULL); in VP8LoadFinalBytes() 90 if (br->buf_ < br->buf_end_) { in VP8LoadFinalBytes() 92 br->value_ = (bit_t)(*br->buf_++) | (br->value_ << 8); in VP8LoadFinalBytes() 160 br->buf_ = start; in VP8LInitBitReader() 168 br->buf_ = buf; in VP8LBitReaderSetBuffer() 183 br->val_ |= ((vp8l_val_t)br->buf_[br->pos_]) << (VP8L_LBITS - 8); in ShiftBytes() 198 br->val_ |= (vp8l_val_t)HToLE32(WebPMemToUint32(br->buf_ + br->pos_)) << in VP8LDoFillBitWindow()
|
/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) 40 if o: MyGame_Sample_Vec3 { buf_, o } else: nil 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) [all …]
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | line_reader.h | 70 if (buf_[i] == '\n' || buf_[i] == 0) { in GetNextLine() 71 buf_[i] = 0; in GetNextLine() 73 *line = buf_; in GetNextLine() 78 if (buf_used_ == sizeof(buf_)) { in GetNextLine() 90 buf_[buf_used_] = 0; in GetNextLine() 93 *line = buf_; in GetNextLine() 98 const ssize_t n = sys_read(fd_, buf_ + buf_used_, in GetNextLine() 99 sizeof(buf_) - buf_used_); in GetNextLine() 118 my_memmove(buf_, buf_ + len + 1, buf_used_); in PopLine() 126 char buf_[kMaxLineLen]; variable
|
D | directory_reader.h | 63 reinterpret_cast<kernel_dirent*>(buf_); in GetNextEntry() 67 const int n = sys_getdents(fd_, dent, sizeof(buf_)); in GetNextEntry() 91 reinterpret_cast<kernel_dirent*>(buf_); in PopEntry() 94 my_memmove(buf_, buf_ + dent->d_reclen, buf_used_); in PopEntry() 101 uint8_t buf_[sizeof(struct kernel_dirent) + NAME_MAX + 1]; variable
|
/external/adhd/cras/src/tests/ |
D | shm_unittest.cc | 34 uint8_t *buf_; member in __anona62741660111::ShmTestSuite 40 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F() 49 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F() 51 EXPECT_EQ(shm_.area->samples, buf_); in TEST_F() 63 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F() 65 EXPECT_EQ((shm_.area->samples + shm_.area->read_offset[0]), buf_); in TEST_F() 77 buf_ = cras_shm_get_readable_frames(&shm_, 25, &frames_); in TEST_F() 81 (uint8_t *)buf_); in TEST_F() 90 buf_ = cras_shm_get_readable_frames(&shm_, 0, &frames_); in TEST_F() 92 EXPECT_EQ(shm_.area->samples + shm_.area->read_offset[0], (uint8_t *)buf_); in TEST_F() [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | bytestream.cc | 87 buf_(new char[estimated_size]), in GrowingArrayByteSink() 92 delete[] buf_; // Just in case the user didn't call GetBuffer. in ~GrowingArrayByteSink() 97 if (bytes != (buf_ + size_)) { in Append() 100 GOOGLE_DCHECK(!(buf_ <= bytes && bytes < (buf_ + capacity_))) in Append() 106 if (n > 0 && bytes != (buf_ + size_)) { in Append() 107 memcpy(buf_ + size_, bytes, n); in Append() 114 char* b = buf_; in GetBuffer() 116 buf_ = NULL; in GetBuffer() 124 memcpy(bigger, buf_, size_); in Expand() 125 delete[] buf_; in Expand() [all …]
|
/external/flatbuffers/include/flatbuffers/ |
D | flatbuffers.h | 523 buf_(nullptr), 532 buf_(buf), 543 buf_(other.buf_), 561 buf_ = other.buf_; 616 uint8_t *buf_; 622 if (buf_) Deallocate(allocator_, buf_, reserved_); 630 buf_ = nullptr; 654 buf_(nullptr), 670 buf_(other.buf_), 678 other.buf_ = nullptr; [all …]
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | inputbuffer.cc | 27 buf_(new char[size_]), in InputBuffer() 28 pos_(buf_), in InputBuffer() 29 limit_(buf_) {} in InputBuffer() 31 InputBuffer::~InputBuffer() { delete[] buf_; } in ~InputBuffer() 35 Status s = file_->Read(file_pos_, size_, &data, buf_); in FillBuffer() 36 if (data.data() != buf_) { in FillBuffer() 37 memmove(buf_, data.data(), data.size()); in FillBuffer() 39 pos_ = buf_; in FillBuffer() 63 DCHECK_EQ(pos_, buf_); in ReadLine() 64 } while (limit_ != buf_); in ReadLine() [all …]
|
D | buffered_inputstream.cc | 29 buf_.reserve(size_); in BufferedInputStream() 49 Status s = input_stream_->ReadNBytes(size_, &buf_); in FillBuffer() 51 limit_ = buf_.size(); in FillBuffer() 52 if (buf_.empty()) { in FillBuffer() 70 char c = buf_[pos_++]; in ReadLineHelper() 113 result->insert(result->size(), buf_, pos_, bytes_to_copy); in ReadNBytes() 178 result->append(buf_); in ReadAll()
|
/external/flac/libFLAC/ |
D | md5.c | 276 FLAC__byte *buf_ = mbuf->p8; in format_input_() local 291 *buf_++ = signal[0][sample]; in format_input_() 296 *buf_++ = signal[0][sample]; in format_input_() 297 *buf_++ = signal[1][sample]; in format_input_() 303 *buf_++ = signal[0][sample]; in format_input_() 304 *buf_++ = signal[1][sample]; in format_input_() 305 *buf_++ = signal[2][sample]; in format_input_() 306 *buf_++ = signal[3][sample]; in format_input_() 312 *buf_++ = signal[0][sample]; in format_input_() 313 *buf_++ = signal[1][sample]; in format_input_() [all …]
|
/external/flatbuffers/tests/namespace_test/ |
D | namespace_test2_generated.lobster | 19 o := buf_.flatbuffers_field_table(pos_, 4) 20 if o: NamespaceA_NamespaceB_TableInNestedNS { buf_, o } else: nil 22 buf_.flatbuffers_field_int8(pos_, 6, 0) 24 o := buf_.flatbuffers_field_struct(pos_, 8) 25 if o: NamespaceA_NamespaceB_StructInNestedNS { buf_, o } else: nil 44 o := buf_.flatbuffers_field_table(pos_, 4) 45 if o: NamespaceA_TableInFirstNS { buf_, o } else: nil 47 o := buf_.flatbuffers_field_table(pos_, 6) 48 if o: NamespaceA_SecondTableInA { buf_, o } else: nil 65 o := buf_.flatbuffers_field_table(pos_, 4) [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_lexer.cc | 56 if (current_ptr_ == buf_.end()) { in PeekCurrentChar() 68 return ptr < buf_.end() && ptr >= buf_.begin(); in CanDereference() 74 CHECK(begin == buf_.end() || CanDereference(begin)); in StringPieceFromPointers() 75 CHECK(end == buf_.end() || CanDereference(end)); in StringPieceFromPointers() 82 CHECK(begin == buf_.end() || CanDereference(begin)); in RegexpStringPieceFromPointers() 83 CHECK(end == buf_.end() || CanDereference(end)); in RegexpStringPieceFromPointers() 297 RegexpStringPieceFromPointers(token_state_.token_start, buf_.end()); in LexIdentifier() 340 RegexpStringPieceFromPointers(token_state_.token_start, buf_.end()); in LexNumberOrPattern() 397 const char* start = buf_.begin(); in GetLineAndColumn() 405 CHECK_LT(ptr, buf_.end()); in GetLineAndColumn() [all …]
|
/external/libchrome/base/files/ |
D | dir_reader_linux.h | 37 memset(buf_, 0, sizeof(buf_)); in DirReaderLinux() 54 linux_dirent* dirent = reinterpret_cast<linux_dirent*>(&buf_[offset_]); in Next() 61 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_)); in Next() 78 reinterpret_cast<const linux_dirent*>(&buf_[offset_]); in name() 92 alignas(linux_dirent) unsigned char buf_[512]; variable
|
/external/tensorflow/tensorflow/core/kernels/ |
D | sendrecv_ops.cc | 70 GetRendezvousKey(key_prefix_, {0, 0}, &parsed_key_.buf_); in SendOp() 71 OP_REQUIRES_OK(ctx, Rendezvous::ParseKey(parsed_key_.buf_, &parsed_key_)); in SendOp() 93 VLOG(2) << "Send " << parsed_key_.buf_; in Compute() 99 GetRendezvousKey(key_prefix_, frame_iter, &in_loop_parsed.buf_); in Compute() 100 VLOG(2) << "Send " << in_loop_parsed.buf_; in Compute() 102 Rendezvous::ParseKey(in_loop_parsed.buf_, &in_loop_parsed)); in Compute() 138 GetRendezvousKey(key_prefix_, {0, 0}, &parsed_key_.buf_); in RecvOp() 139 OP_REQUIRES_OK(ctx, Rendezvous::ParseKey(parsed_key_.buf_, &parsed_key_)); in RecvOp() 182 VLOG(2) << "Recv " << parsed_key_.buf_; in ComputeAsync() 187 GetRendezvousKey(key_prefix_, frame_iter, &in_loop_parsed.buf_); in ComputeAsync() [all …]
|
D | record_yielder.cc | 54 CHECK(!stop_ && !buf_.empty()); in YieldOne() 55 *value = std::move(buf_.back()); in YieldOne() 56 buf_.pop_back(); in YieldOne() 61 if (buf_.empty()) { in YieldOne() 182 auto index = rnd_() % (buf_.size() + 1); in Add() 183 if (index == buf_.size()) { in Add() 184 buf_.push_back(std::move(values->back())); in Add() 186 buf_.push_back(std::move(buf_[index])); in Add() 187 buf_[index] = std::move(values->back()); in Add()
|
D | stage_op.cc | 75 buf_.push_back(std::move(*tuple)); in Put() 93 non_empty_cond_var_.wait(lock, [this]() { return !buf_.empty(); }); in Get() 96 *tuple = std::move(buf_.front()); in Get() 97 buf_.pop_front(); in Get() 111 lock, [index, this]() { return index < this->buf_.size(); }); in Peek() 114 for (const auto& tensor : buf_[index]) { in Peek() 124 return buf_.size(); in Size() 129 buf_.clear(); in Clear() 137 return strings::StrCat("Staging size: ", buf_.size()); in DebugString() 157 bool IsCapacityFull() const { return buf_.size() >= capacity_; } in IsCapacityFull() [all …]
|
/external/libcxx/include/ |
D | __sso_allocator | 37 typename aligned_storage<sizeof(_Tp) * _Np>::type buf_; 56 return (pointer)&buf_; 62 if (__p == (pointer)&buf_) 70 bool operator==(__sso_allocator& __a) const {return &buf_ == &__a.buf_;} 72 bool operator!=(__sso_allocator& __a) const {return &buf_ != &__a.buf_;}
|
/external/kmod/shared/ |
D | scratchbuf.h | 27 #define SCRATCHBUF_INITIALIZER(buf_) { \ argument 28 .bytes = buf_, \ 29 .size = sizeof(buf_) + _array_size_chk(buf_), \
|
/external/libaom/libaom/test/ |
D | webm_video_source.h | 30 webm_ctx_(new WebmInputContext()), buf_(NULL), buf_sz_(0), frame_sz_(0), in WebMVideoSource() 59 const int status = webm_read_frame(webm_ctx_, &buf_, &frame_sz_, &buf_sz_); in FillFrame() 70 webm_read_frame(webm_ctx_, &buf_, &frame_sz_, &buf_sz_); in SeekToNextKeyFrame() 79 virtual const uint8_t *cxdata() const { return end_of_file_ ? NULL : buf_; } in cxdata() 87 uint8_t *buf_; // Owned by webm_ctx_ and freed when webm_ctx_ is freed. variable
|