Home
last modified time | relevance | path

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

12345678910

/external/tensorflow/tensorflow/core/kernels/
Deigen_benchmark.h42 Eigen::Index BufferSize(const Dimensions& dims) { in BufferSize() function
53 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in SpatialConvolution()
55 static_cast<Scalar*>(device_.allocate(BufferSize(filter_dims))); in SpatialConvolution()
57 static_cast<Scalar*>(device_.allocate(BufferSize(output_dims))); in SpatialConvolution()
59 device_.memset(input_data, 123, BufferSize(input_dims)); in SpatialConvolution()
60 device_.memset(filter_data, 123, BufferSize(filter_dims)); in SpatialConvolution()
91 static_cast<Scalar*>(device_.allocate(BufferSize(filter_dims))); in SpatialConvolutionBackwardInput()
93 static_cast<Scalar*>(device_.allocate(BufferSize(output_dims))); in SpatialConvolutionBackwardInput()
95 static_cast<Scalar*>(device_.allocate(BufferSize(input_dims))); in SpatialConvolutionBackwardInput()
97 device_.memset(filter_data, 123, BufferSize(filter_dims)); in SpatialConvolutionBackwardInput()
[all …]
/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/llvm-project/clang/lib/AST/
DNestedNameSpecifier.cpp461 static void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize, in Append() argument
466 if (BufferSize + (End - Start) > BufferCapacity) { in Append()
470 (unsigned)(BufferSize + (End - Start))); in Append()
474 memcpy(NewBuffer, Buffer, BufferSize); in Append()
482 memcpy(Buffer + BufferSize, Start, End - Start); in Append()
483 BufferSize += End - Start; in Append()
488 unsigned &BufferSize, unsigned &BufferCapacity) { in SaveSourceLocation() argument
492 Buffer, BufferSize, BufferCapacity); in SaveSourceLocation()
496 static void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize, in SavePointer() argument
500 Buffer, BufferSize, BufferCapacity); in SavePointer()
[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/llvm-project/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/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()
/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/llvm-project/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.h50 size_t BufferSize; variable
75 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
110 OwnsStream(Owns), BufferSize(BuffSize), BufferArray(nullptr), in raw_ostream()
112 if (BufferSize != 0) in raw_ostream()
113 BufferArray = new char[BufferSize]; in raw_ostream()
/external/swiftshader/third_party/llvm-10.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.h50 size_t BufferSize; variable
75 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
110 OwnsStream(Owns), BufferSize(BuffSize), BufferArray(nullptr), in raw_ostream()
112 if (BufferSize != 0) in raw_ostream()
113 BufferArray = new char[BufferSize]; in raw_ostream()
/external/llvm-project/compiler-rt/tools/gwp_asan/
Dstack_trace_compressor_fuzzer.cpp12 size_t BufferSize = kBytesForLargestVarInt * Size / sizeof(uintptr_t); in LLVMFuzzerTestOneInput() local
13 std::vector<uint8_t> Buffer(BufferSize); in LLVMFuzzerTestOneInput()
14 std::vector<uint8_t> Buffer2(BufferSize); in LLVMFuzzerTestOneInput()
19 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
24 Buffer.data(), BufferSize); in LLVMFuzzerTestOneInput()
30 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
/external/gwp_asan/tools/
Dstack_trace_compressor_fuzzer.cpp12 size_t BufferSize = kBytesForLargestVarInt * Size / sizeof(uintptr_t); in LLVMFuzzerTestOneInput() local
13 std::vector<uint8_t> Buffer(BufferSize); in LLVMFuzzerTestOneInput()
14 std::vector<uint8_t> Buffer2(BufferSize); in LLVMFuzzerTestOneInput()
19 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
24 Buffer.data(), BufferSize); in LLVMFuzzerTestOneInput()
30 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/HardwareUnits/
DResourceManager.h194 const int BufferSize; variable
220 int getBufferSize() const { return BufferSize; } in getBufferSize()
222 bool isBuffered() const { return BufferSize > 0; } in isBuffered()
223 bool isInOrder() const { return BufferSize == 1; } in isInOrder()
226 bool isADispatchHazard() const { return BufferSize == 0; } in isADispatchHazard()
270 if (BufferSize <= 0) in reserveBuffer()
274 assert(AvailableSlots <= static_cast<unsigned>(BufferSize)); in reserveBuffer()
281 if (BufferSize <= 0) in releaseBuffer()
285 assert(AvailableSlots <= static_cast<unsigned>(BufferSize)); in releaseBuffer()
/external/llvm-project/llvm/include/llvm/MCA/HardwareUnits/
DResourceManager.h193 const int BufferSize; variable
219 int getBufferSize() const { return BufferSize; } in getBufferSize()
221 bool isBuffered() const { return BufferSize > 0; } in isBuffered()
222 bool isInOrder() const { return BufferSize == 1; } in isInOrder()
225 bool isADispatchHazard() const { return BufferSize == 0; } in isADispatchHazard()
269 if (BufferSize <= 0) in reserveBuffer()
273 assert(AvailableSlots <= static_cast<unsigned>(BufferSize)); in reserveBuffer()
280 if (BufferSize <= 0) in releaseBuffer()
284 assert(AvailableSlots <= static_cast<unsigned>(BufferSize)); in releaseBuffer()
/external/llvm-project/llvm/lib/Support/
Dcircular_raw_ostream.cpp18 if (BufferSize == 0) { in write_impl()
26 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
30 if (Cur == BufferArray + BufferSize) { in write_impl()
39 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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
Dcircular_raw_ostream.cpp18 if (BufferSize == 0) { in write_impl()
26 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
30 if (Cur == BufferArray + BufferSize) { in write_impl()
39 if (BufferSize != 0) { in flushBufferWithBanner()
/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/llvm-project/compiler-rt/lib/xray/
Dxray_buffer_queue.cpp79 BufferSize = BS; in init()
82 BackingStore = allocControlBlock(BufferSize, BufferCount); in init()
89 deallocControlBlock(BackingStore, BufferSize, BufferCount); in init()
129 Buf.Data = &BackingStore->Data + (BufferSize * i); in init()
130 Buf.Size = BufferSize; in init()
147 : BufferSize(B), in BufferQueue()
198 Buf.Data > &BackingStore->Data + (BufferCount * BufferSize)) in releaseBuffer()
228 decRefCount(BackingStore, BufferSize, BufferCount); in cleanupBuffers()
234 BufferSize = 0; in cleanupBuffers()
/external/llvm-project/llvm/tools/llvm-mca/Views/
DTimelineView.cpp50 if (!BufferInfo.first || BufferInfo.second > MCDesc.BufferSize) { in onReservedBuffers()
52 BufferInfo.second = MCDesc.BufferSize; in onReservedBuffers()
108 unsigned Executions, int BufferSize) { in chooseColor() argument
109 if (CumulativeCycles && BufferSize < 0) in chooseColor()
111 unsigned Size = static_cast<unsigned>(BufferSize); in chooseColor()
120 unsigned Executions, int BufferSize) { in tryChangeColor() argument
124 raw_ostream::Colors Color = chooseColor(Cycles, Executions, BufferSize); in tryChangeColor()
154 int BufferSize = PrintingTotals ? 0 : UsedBuffer[SourceIndex].second; in printWaitTimeEntry() local
157 BufferSize); in printWaitTimeEntry()
162 BufferSize); in printWaitTimeEntry()
/external/mesa3d/src/mesa/main/
Dfeedback.c62 ctx->Feedback.BufferSize = 0; in _mesa_FeedbackBuffer()
89 ctx->Feedback.BufferSize = size; in _mesa_FeedbackBuffer()
174 ctx->Select.BufferSize = size; in _mesa_SelectBuffer()
194 if (ctx->Select.BufferCount < ctx->Select.BufferSize) { in write_record()
429 if (ctx->Select.BufferCount > ctx->Select.BufferSize) { in _mesa_RenderMode()
444 if (ctx->Feedback.Count > ctx->Feedback.BufferSize) { in _mesa_RenderMode()
462 if (ctx->Select.BufferSize==0) { in _mesa_RenderMode()
468 if (ctx->Feedback.BufferSize==0) { in _mesa_RenderMode()
500 ctx->Feedback.BufferSize = 0; in _mesa_init_feedback()
505 ctx->Select.BufferSize = 0; in _mesa_init_feedback()
/external/ms-tpm-20-ref/TPMCmd/Simulator/src/
DTPMCmdp.c193 _TPM_Hash_Data(input.BufferSize, input.Buffer); in _rpc__Signal_Hash_Data()
224 response->BufferSize = 0; in _rpc__Send_Command()
230 _plat__RunCommand(request.BufferSize, request.Buffer, in _rpc__Send_Command()
231 &response->BufferSize, &response->Buffer); in _rpc__Send_Command()

12345678910