Home
last modified time | relevance | path

Searched refs:BufferSize (Results 1 – 25 of 133) sorted by relevance

123456

/external/clang/lib/AST/
DNestedNameSpecifier.cpp450 void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize, in Append() argument
455 if (BufferSize + (End - Start) > BufferCapacity) { in Append()
459 (unsigned)(BufferSize + (End - Start))); in Append()
462 memcpy(NewBuffer, Buffer, BufferSize); in Append()
469 memcpy(Buffer + BufferSize, Start, End - Start); in Append()
470 BufferSize += End-Start; in Append()
475 unsigned &BufferSize, unsigned &BufferCapacity) { in SaveSourceLocation() argument
479 Buffer, BufferSize, BufferCapacity); in SaveSourceLocation()
483 void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize, in SavePointer() argument
487 Buffer, BufferSize, BufferCapacity); in SavePointer()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Deigen_benchmark.h41 Eigen::Index BufferSize(const Dimensions& dims) { in BufferSize() function
52 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in SpatialConvolution()
54 static_cast<Scalar*>(device_.allocate(BufferSize(filter_dims))); in SpatialConvolution()
56 static_cast<Scalar*>(device_.allocate(BufferSize(output_dims))); in SpatialConvolution()
58 device_.memset(input_data, 123, BufferSize(input_dims)); in SpatialConvolution()
59 device_.memset(filter_data, 123, BufferSize(filter_dims)); in SpatialConvolution()
92 static_cast<Scalar*>(device_.allocate(BufferSize(filter_dims))); in SpatialConvolutionBackwardInput()
94 static_cast<Scalar*>(device_.allocate(BufferSize(output_dims))); in SpatialConvolutionBackwardInput()
96 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in SpatialConvolutionBackwardInput()
98 device_.memset(filter_data, 123, BufferSize(filter_dims)); in SpatialConvolutionBackwardInput()
[all …]
/external/libcxx/test/libcxx/utilities/any/
Dsmall_type.pass.cpp19 constexpr std::size_t BufferSize = (sizeof(void*) * 3); variable
36 char buff[BufferSize];
43 char buff[BufferSize];
48 char buff[BufferSize + 1];
55 char buff[BufferSize + 1];
70 static_assert(sizeof(T) == BufferSize, ""); in main()
78 static_assert(sizeof(T) < BufferSize, ""); in main()
86 static_assert(sizeof(T) == BufferSize, ""); in main()
94 static_assert(sizeof(T) > BufferSize, ""); in main()
102 static_assert(sizeof(T) < BufferSize, ""); in main()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DFormat.h47 virtual int snprint(char *Buffer, unsigned BufferSize) const = 0;
56 unsigned print(char *Buffer, unsigned BufferSize) const { in print() argument
57 assert(BufferSize && "Invalid buffer size!"); in print()
60 int N = snprint(Buffer, BufferSize); in print()
64 return BufferSize*2; in print()
67 if (unsigned(N) >= BufferSize) in print()
87 virtual int snprint(char *Buffer, unsigned BufferSize) const { in snprint() argument
88 return snprintf(Buffer, BufferSize, Fmt, Val); in snprint()
105 virtual int snprint(char *Buffer, unsigned BufferSize) const { in snprint() argument
106 return snprintf(Buffer, BufferSize, Fmt, Val1, Val2); in snprint()
[all …]
Dcircular_raw_ostream.h52 size_t BufferSize; variable
77 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
114 BufferSize(BuffSize), in raw_ostream()
118 if (BufferSize != 0) in raw_ostream()
119 BufferArray = new char[BufferSize]; in raw_ostream()
DFormattedStream.h108 if (size_t BufferSize = TheStream->GetBufferSize()) variable
109 SetBufferSize(BufferSize);
132 else if (size_t BufferSize = GetBufferSize()) in releaseStream() local
133 TheStream->SetBufferSize(BufferSize); in releaseStream()
/external/llvm/include/llvm/Support/
DFormat.h45 virtual int snprint(char *Buffer, unsigned BufferSize) const = 0;
53 unsigned print(char *Buffer, unsigned BufferSize) const { in print() argument
54 assert(BufferSize && "Invalid buffer size!"); in print()
57 int N = snprint(Buffer, BufferSize); in print()
61 return BufferSize * 2; in print()
65 if (unsigned(N) >= BufferSize) in print()
83 int snprint_tuple(char *Buffer, unsigned BufferSize, in snprint_tuple() argument
86 return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...); in snprint_tuple()
88 return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...); in snprint_tuple()
96 int snprint(char *Buffer, unsigned BufferSize) const override { in snprint() argument
[all …]
Dcircular_raw_ostream.h51 size_t BufferSize; variable
76 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
111 OwnsStream(Owns), BufferSize(BuffSize), BufferArray(nullptr), in raw_ostream()
113 if (BufferSize != 0) in raw_ostream()
114 BufferArray = new char[BufferSize]; in raw_ostream()
DFormattedStream.h69 if (size_t BufferSize = TheStream->GetBufferSize()) in setStream() local
70 SetBufferSize(BufferSize); in setStream()
140 if (size_t BufferSize = GetBufferSize()) in releaseStream() local
141 TheStream->SetBufferSize(BufferSize); in releaseStream()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFormat.h46 virtual int snprint(char *Buffer, unsigned BufferSize) const = 0;
54 unsigned print(char *Buffer, unsigned BufferSize) const { in print() argument
55 assert(BufferSize && "Invalid buffer size!"); in print()
58 int N = snprint(Buffer, BufferSize); in print()
62 return BufferSize * 2; in print()
66 if (unsigned(N) >= BufferSize) in print()
94 int snprint_tuple(char *Buffer, unsigned BufferSize,
97 return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99 return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
109 int snprint(char *Buffer, unsigned BufferSize) const override {
[all …]
Dcircular_raw_ostream.h51 size_t BufferSize; variable
76 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
111 OwnsStream(Owns), BufferSize(BuffSize), BufferArray(nullptr), in raw_ostream()
113 if (BufferSize != 0) in raw_ostream()
114 BufferArray = new char[BufferSize]; in raw_ostream()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DFormat.h46 virtual int snprint(char *Buffer, unsigned BufferSize) const = 0;
54 unsigned print(char *Buffer, unsigned BufferSize) const { in print() argument
55 assert(BufferSize && "Invalid buffer size!"); in print()
58 int N = snprint(Buffer, BufferSize); in print()
62 return BufferSize * 2; in print()
66 if (unsigned(N) >= BufferSize) in print()
94 int snprint_tuple(char *Buffer, unsigned BufferSize,
97 return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99 return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
109 int snprint(char *Buffer, unsigned BufferSize) const override {
[all …]
Dcircular_raw_ostream.h51 size_t BufferSize; variable
76 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
111 OwnsStream(Owns), BufferSize(BuffSize), BufferArray(nullptr), in raw_ostream()
113 if (BufferSize != 0) in raw_ostream()
114 BufferArray = new char[BufferSize]; in raw_ostream()
DFormattedStream.h69 if (size_t BufferSize = TheStream->GetBufferSize()) in setStream() local
70 SetBufferSize(BufferSize); in setStream()
140 if (size_t BufferSize = GetBufferSize()) in releaseStream() local
141 TheStream->SetBufferSize(BufferSize); in releaseStream()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-mca/
DScheduler.h138 int BufferSize; variable
180 BufferSize = Desc.BufferSize; in ResourceState()
181 AvailableSlots = BufferSize == -1 ? 0U : static_cast<unsigned>(BufferSize); in ResourceState()
187 int getBufferSize() const { return BufferSize; } in getBufferSize()
189 bool isBuffered() const { return BufferSize > 0; } in isBuffered()
190 bool isInOrder() const { return BufferSize == 1; } in isInOrder()
191 bool isADispatchHazard() const { return BufferSize == 0; } in isADispatchHazard()
245 if (BufferSize > 0) in releaseBuffer()
247 assert(AvailableSlots <= static_cast<unsigned>(BufferSize)); in releaseBuffer()
/external/swiftshader/third_party/LLVM/lib/Support/
Dcircular_raw_ostream.cpp19 if (BufferSize == 0) { in write_impl()
27 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
31 if (Cur == BufferArray + BufferSize) { in write_impl()
40 if (BufferSize != 0) { in flushBufferWithBanner()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
Dcircular_raw_ostream.cpp19 if (BufferSize == 0) { in write_impl()
27 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
31 if (Cur == BufferArray + BufferSize) { in write_impl()
40 if (BufferSize != 0) { in flushBufferWithBanner()
/external/llvm/lib/Support/
Dcircular_raw_ostream.cpp19 if (BufferSize == 0) { in write_impl()
27 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
31 if (Cur == BufferArray + BufferSize) { in write_impl()
40 if (BufferSize != 0) { in flushBufferWithBanner()
DStreamingMemoryObject.cpp51 uint64_t BufferSize = LastChar - FirstChar; in readBytes() local
52 if (Address >= BufferSize) in readBytes()
56 if (End > BufferSize) in readBytes()
57 End = BufferSize; in readBytes()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
Dcircular_raw_ostream.cpp19 if (BufferSize == 0) { in write_impl()
27 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
31 if (Cur == BufferArray + BufferSize) { in write_impl()
40 if (BufferSize != 0) { in flushBufferWithBanner()
/external/mesa3d/src/mesa/main/
Dfeedback.c63 ctx->Feedback.BufferSize = 0; in _mesa_FeedbackBuffer()
90 ctx->Feedback.BufferSize = size; in _mesa_FeedbackBuffer()
175 ctx->Select.BufferSize = size; in _mesa_SelectBuffer()
195 if (ctx->Select.BufferCount < ctx->Select.BufferSize) { in write_record()
430 if (ctx->Select.BufferCount > ctx->Select.BufferSize) { in _mesa_RenderMode()
445 if (ctx->Feedback.Count > ctx->Feedback.BufferSize) { in _mesa_RenderMode()
463 if (ctx->Select.BufferSize==0) { in _mesa_RenderMode()
469 if (ctx->Feedback.BufferSize==0) { in _mesa_RenderMode()
501 ctx->Feedback.BufferSize = 0; in _mesa_init_feedback()
506 ctx->Select.BufferSize = 0; in _mesa_init_feedback()
/external/llvm/lib/Target/AMDGPU/
DSISchedule.td59 let BufferSize = 1;
62 let BufferSize = 7; // Taken from S_WAITCNT
65 let BufferSize = 31; // Taken from S_WAITCNT
68 let BufferSize = 1;
71 let BufferSize = 15; // Taken from S_WAITCNT
74 let BufferSize = 1;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSISchedule.td68 let BufferSize = 1;
71 let BufferSize = 7; // Taken from S_WAITCNT
74 let BufferSize = 31; // Taken from S_WAITCNT
77 let BufferSize = 1;
80 let BufferSize = 15; // Taken from S_WAITCNT
83 let BufferSize = 1;
/external/protobuf/src/google/protobuf/io/
Dcoded_stream.cc94 int backup_bytes = BufferSize() + buffer_size_after_limit_ + overflow_bytes_; in BackUpInputToCurrentPosition()
99 total_bytes_read_ -= BufferSize() + buffer_size_after_limit_; in BackUpInputToCurrentPosition()
217 const int original_buffer_size = BufferSize(); in Skip()
252 if (BufferSize() == 0 && !Refresh()) return false; in GetDirectBufferPointer()
255 *size = BufferSize(); in GetDirectBufferPointer()
282 while ((current_buffer_size = BufferSize()) < size) { in ReadStringFallback()
306 if (BufferSize() >= sizeof(*value)) { in ReadLittleEndian32Fallback()
323 if (BufferSize() >= sizeof(*value)) { in ReadLittleEndian64Fallback()
390 if (BufferSize() >= kMaxVarintBytes || in ReadVarint32Fallback()
438 const int buf_size = BufferSize(); in ReadTagFallback()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/
DStreamingMemoryObject.cpp51 uint64_t BufferSize = LastChar - FirstChar; in readBytes() local
52 if (Address >= BufferSize) in readBytes()
56 if (End > BufferSize) in readBytes()
57 End = BufferSize; in readBytes()

123456