Home
last modified time | relevance | path

Searched refs:scratch_ (Results 1 – 25 of 28) sorted by relevance

12

/external/protobuf/src/google/protobuf/stubs/
Dsubstitute.h107 : text_(scratch_), size_(1) { scratch_[0] = value; } in SubstituteArg()
109 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
111 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
113 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
115 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
117 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
119 : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
121 : text_(FastInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
123 : text_(FastUInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
125 : text_(FloatToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dsubstitute.h123 : piece_(scratch_, 1) { in Arg()
124 scratch_[0] = value; in Arg()
127 : piece_(scratch_, in Arg()
128 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
130 : piece_(scratch_, in Arg()
131 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
133 : piece_(scratch_, in Arg()
134 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
136 : piece_(scratch_, in Arg()
137 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
[all …]
Dsubstitute.cc99 static_assert(sizeof(scratch_) >= sizeof(value) * 2 + 2, in Arg()
104 char* ptr = scratch_ + sizeof(scratch_); in Arg()
112 piece_ = absl::string_view(ptr, scratch_ + sizeof(scratch_) - ptr); in Arg()
118 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
140 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
/external/abseil-cpp/absl/strings/
Dsubstitute.h123 : piece_(scratch_, 1) { scratch_[0] = value; } in Arg()
125 : piece_(scratch_, in Arg()
126 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
128 : piece_(scratch_, in Arg()
129 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
131 : piece_(scratch_, in Arg()
132 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
134 : piece_(scratch_, in Arg()
135 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
137 : piece_(scratch_, in Arg()
[all …]
Dsubstitute.cc99 static_assert(sizeof(scratch_) >= sizeof(value) * 2 + 2, in Arg()
104 char* ptr = scratch_ + sizeof(scratch_); in Arg()
112 piece_ = absl::string_view(ptr, scratch_ + sizeof(scratch_) - ptr); in Arg()
118 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
140 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
/external/openscreen/third_party/abseil/src/absl/strings/
Dsubstitute.h123 : piece_(scratch_, 1) { in Arg()
124 scratch_[0] = value; in Arg()
127 : piece_(scratch_, in Arg()
128 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
130 : piece_(scratch_, in Arg()
131 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
133 : piece_(scratch_, in Arg()
134 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
136 : piece_(scratch_, in Arg()
137 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
[all …]
Dsubstitute.cc99 static_assert(sizeof(scratch_) >= sizeof(value) * 2 + 2, in Arg()
104 char* ptr = scratch_ + sizeof(scratch_); in Arg()
112 piece_ = absl::string_view(ptr, scratch_ + sizeof(scratch_) - ptr); in Arg()
118 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
140 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dsubstitute.h123 : piece_(scratch_, 1) { scratch_[0] = value; } in Arg()
125 : piece_(scratch_, in Arg()
126 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
128 : piece_(scratch_, in Arg()
129 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
131 : piece_(scratch_, in Arg()
132 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
134 : piece_(scratch_, in Arg()
135 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
137 : piece_(scratch_, in Arg()
[all …]
Dsubstitute.cc99 static_assert(sizeof(scratch_) >= sizeof(value) * 2 + 2, in Arg()
104 char* ptr = scratch_ + sizeof(scratch_); in Arg()
112 piece_ = absl::string_view(ptr, scratch_ + sizeof(scratch_) - ptr); in Arg()
118 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
140 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
/external/libtextclassifier/abseil-cpp/absl/strings/
Dsubstitute.h123 : piece_(scratch_, 1) { in Arg()
124 scratch_[0] = value; in Arg()
127 : piece_(scratch_, in Arg()
128 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
130 : piece_(scratch_, in Arg()
131 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
133 : piece_(scratch_, in Arg()
134 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
136 : piece_(scratch_, in Arg()
137 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
[all …]
Dsubstitute.cc99 static_assert(sizeof(scratch_) >= sizeof(value) * 2 + 2, in Arg()
104 char* ptr = scratch_ + sizeof(scratch_); in Arg()
112 piece_ = absl::string_view(ptr, scratch_ + sizeof(scratch_) - ptr); in Arg()
118 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
140 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
/external/angle/third_party/abseil-cpp/absl/strings/
Dsubstitute.h123 : piece_(scratch_, 1) { in Arg()
124 scratch_[0] = value; in Arg()
127 : piece_(scratch_, in Arg()
128 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
130 : piece_(scratch_, in Arg()
131 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
133 : piece_(scratch_, in Arg()
134 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
136 : piece_(scratch_, in Arg()
137 numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} in Arg()
[all …]
Dsubstitute.cc99 static_assert(sizeof(scratch_) >= sizeof(value) * 2 + 2, in Arg()
104 char* ptr = scratch_ + sizeof(scratch_); in Arg()
112 piece_ = absl::string_view(ptr, scratch_ + sizeof(scratch_) - ptr); in Arg()
118 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
140 char* const end = &scratch_[numbers_internal::kFastToBufferSize]; in Arg()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorDeviceCuda.h102 CudaStreamDevice() : stream_(&default_stream), scratch_(NULL), semaphore_(NULL) { in initializeDeviceProp()
107 …CudaStreamDevice(int device) : stream_(&default_stream), device_(device), scratch_(NULL), semaphor… in initializeDeviceProp()
115 : stream_(stream), device_(device), scratch_(NULL), semaphore_(NULL) { in initializeDeviceProp()
130 if (scratch_) { in initializeDeviceProp()
131 deallocate(scratch_); in initializeDeviceProp()
159 if (scratch_ == NULL) { in initializeDeviceProp()
160 scratch_ = allocate(kCudaScratchSize + sizeof(unsigned int)); in initializeDeviceProp()
162 return scratch_; in initializeDeviceProp()
179 mutable void* scratch_; in initializeDeviceProp() variable
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_fft.h51 scratch_(nullptr), in ROCMFftPlan()
89 DeviceMemory<uint8> scratch_; variable
Drocm_fft.cc333 if (!allocated.ok() || (scratch_ = allocated.ValueOrDie()) == nullptr) { in UpdateScratchAllocator()
339 auto ret = wrap::hipfftSetWorkArea(parent_, plan_, scratch_.opaque()); in UpdateScratchAllocator()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_fft.h51 scratch_(nullptr), in CUDAFftPlan()
92 DeviceMemory<uint8> scratch_; variable
Dcuda_fft.cc252 if (!allocated.ok() || (scratch_ = allocated.ValueOrDie()) == nullptr) { in UpdateScratchAllocator()
259 cufftResult_t ret = cufftSetWorkArea(plan_, scratch_.opaque()); in UpdateScratchAllocator()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_conv_runner.cc48 : scratch_(scratch) {} in ScratchBufAllocator()
52 int64 GetMemoryLimitInBytes() override { return scratch_.size(); } in GetMemoryLimitInBytes()
60 if (byte_size > scratch_.size()) { in AllocateBytes()
63 " bytes from a ScratchBufAllocator of size ", scratch_.size())); in AllocateBytes()
67 return se::DeviceMemory<uint8>(scratch_); in AllocateBytes()
71 se::DeviceMemoryBase scratch_; member in xla::gpu::__anon53f8f4230111::ScratchBufAllocator
/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h804 scratch_(nullptr) {}
820 scratch_(other.scratch_) {
828 other.scratch_ = nullptr;
864 void clear_scratch() { scratch_ = buf_; }
905 FLATBUFFERS_ASSERT(cur_ >= scratch_ && scratch_ >= buf_);
906 if (len > static_cast<size_t>(cur_ - scratch_)) { reallocate(len); }
927 return static_cast<uoffset_t>(scratch_ - buf_);
943 FLATBUFFERS_ASSERT(scratch_);
944 return scratch_;
961 *reinterpret_cast<T *>(scratch_) = t;
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dmeta_support.cc47 Scratch() : scratch_(new uint8_t[kScratchSize]) { in Scratch()
51 scratch_.get() + kAlignment - in Scratch()
52 (reinterpret_cast<uintptr_t>(scratch_.get()) % kAlignment); in Scratch()
60 std::unique_ptr<uint8_t> scratch_; member in tensorflow::meta::__anond1531d0e0111::Scratch
/external/libaom/libaom/av1/encoder/
Dmathutils.h68 double *scratch_ = NULL; in least_squares() local
71 scratch_ = (double *)aom_malloc(sizeof(*scratch) * n * (n + 1)); in least_squares()
72 scratch = scratch_; in least_squares()
88 if (scratch_) aom_free(scratch_); in least_squares()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc118 : scratch_(nullptr), semaphore_(nullptr), context_(nullptr) { in EigenGpuStreamDevice()
130 scratch_ = scratch; in Reinitialize()
182 void* scratchpad() const override { return scratch_; } in scratchpad()
221 mutable char* scratch_; in asyncFree() member in tensorflow::EigenGpuStreamDevice
398 gpu_allocator_->DeallocateRaw(scratch_); in ~BaseGPUDevice()
405 if (!scratch_) { in InitScratchBuffers()
419 scratch_ = static_cast<char*>(scratch_buffer); in InitScratchBuffers()
1041 scratch_); in ReinitializeDevice()
Dgpu_device.h145 char* scratch_ = nullptr; variable
/external/tensorflow/tensorflow/core/platform/
Denv.cc513 Status s = file_->Read(pos_, kBufSize, &result, scratch_); in Next()
530 char scratch_[kBufSize]; member in tensorflow::__anon868651c50111::FileStream

12