Home
last modified time | relevance | path

Searched refs:getBufferSize (Results 1 – 25 of 190) sorted by relevance

12345678

/external/llvm-project/llvm/unittests/Support/
DMemoryBufferTest.cpp291 EXPECT_EQ(0x4000UL, MB.get()->getBufferSize()); in TEST_F()
306 EXPECT_EQ(0x3000UL, MB2.get()->getBufferSize()); in TEST_F()
334 ASSERT_EQ(0x6000u, MB.getBufferSize()); in TEST_F()
336 ASSERT_EQ(MB.getBufferEnd(), MB.getBufferStart() + MB.getBufferSize()); in TEST_F()
337 ::memset(Start, 'x', MB.getBufferSize()); in TEST_F()
343 ASSERT_EQ(0x10000u, MB.getBufferSize()); in TEST_F()
344 for (size_t i = 0; i < MB.getBufferSize(); i += 0x10) in TEST_F()
364 ASSERT_EQ(16u, MB.getBufferSize()); in TEST_F()
366 ASSERT_EQ(MB.getBufferEnd(), MB.getBufferStart() + MB.getBufferSize()); in TEST_F()
367 ::memset(Start, 'x', MB.getBufferSize()); in TEST_F()
[all …]
/external/angle/src/libANGLE/renderer/d3d/
DIndexBuffer.cpp58 unsigned int IndexBufferInterface::getBufferSize() const in getBufferSize() function in rx::IndexBufferInterface
60 return mIndexBuffer->getBufferSize(); in getBufferSize()
127 if (mIndexBuffer->getBufferSize() == 0) in setBufferSize()
147 unsigned int curBufferSize = getBufferSize(); in reserveBufferSpace()
173 unsigned int curSize = getBufferSize(); in reserveBufferSpace()
DVertexBuffer.h59 virtual unsigned int getBufferSize() const = 0;
88 unsigned int getBufferSize() const;
89 bool empty() const { return getBufferSize() == 0; } in empty()
DVertexBuffer.cpp77 unsigned int VertexBufferInterface::getBufferSize() const in getBufferSize() function in rx::VertexBufferInterface
80 return mVertexBuffer->getBufferSize(); in getBufferSize()
86 if (mVertexBuffer->getBufferSize() == 0) in setBufferSize()
151 unsigned int curBufferSize = getBufferSize(); in reserveSpace()
DIndexBuffer.h46 virtual unsigned int getBufferSize() const = 0;
72 unsigned int getBufferSize() const;
DBufferD3D.cpp120 currentTotalSize += staticBuffer->getBufferSize(); in getStaticVertexBuffer()
147 if (mStaticIndexBuffer && mStaticIndexBuffer->getBufferSize() != 0) in invalidateStaticData()
/external/OpenCL-CTS/test_conformance/half/
Dcl_utils.cpp133 gIn_half = malloc( getBufferSize(device)/2 ); in InitCL()
138 gOut_single = malloc( getBufferSize(device) ); in InitCL()
139 gOut_single_reference = malloc( getBufferSize(device) ); in InitCL()
155 …gInBuffer_half = clCreateBuffer(gContext, CL_MEM_READ_ONLY, getBufferSize(device) / 2, NULL, &erro… in InitCL()
183 …gOutBuffer_single = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, getBufferSize(device), NULL, &erro… in InitCL()
191 …gOutBuffer_double = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, (size_t)(2*getBufferSize(device)),… in InitCL()
383 size_t getBufferSize(cl_device_id device_id) in getBufferSize() function
435 cl_ulong tmp = getBufferSize(device_id); in getBufferCount()
Dtest_config.h32 extern size_t getBufferSize(cl_device_id device_id);
/external/llvm/lib/Support/
DLineIterator.cpp37 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr), in line_iterator()
39 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
43 if (Buffer.getBufferSize()) { in line_iterator()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DLineIterator.cpp36 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr), in line_iterator()
38 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
42 if (Buffer.getBufferSize()) { in line_iterator()
DFileOutputBuffer.cpp46 size_t getBufferSize() const override { return Buffer->size(); } in getBufferSize() function in __anonf30c80d20111::OnDiskBuffer
89 size_t getBufferSize() const override { return BufferSize; } in getBufferSize() function in __anonf30c80d20111::InMemoryBuffer
/external/llvm-project/llvm/lib/Support/
DLineIterator.cpp40 : Buffer(Buffer.getBufferSize() ? Optional<MemoryBufferRef>(Buffer) : None), in line_iterator()
42 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
46 if (Buffer.getBufferSize()) { in line_iterator()
DFileOutputBuffer.cpp46 size_t getBufferSize() const override { return Buffer->size(); } in getBufferSize() function in __anon6d17b15e0111::OnDiskBuffer
89 size_t getBufferSize() const override { return BufferSize; } in getBufferSize() function in __anon6d17b15e0111::InMemoryBuffer
/external/llvm-project/clang/lib/Lex/
DHeaderMap.cpp67 if (File.getBufferSize() <= sizeof(HMapHeader)) in checkHeader()
95 if (File.getBufferSize() < in checkHeader()
129 assert(FileBuffer->getBufferSize() >= in getBucket()
153 if (StrTabIdx >= FileBuffer->getBufferSize()) in getString()
157 unsigned MaxLen = FileBuffer->getBufferSize() - StrTabIdx; in getString()
/external/clang/lib/Lex/
DHeaderMap.cpp67 if (File.getBufferSize() <= sizeof(HMapHeader)) in checkHeader()
95 if (File.getBufferSize() < in checkHeader()
129 assert(FileBuffer->getBufferSize() >= in getBucket()
153 if (StrTabIdx >= FileBuffer->getBufferSize()) in getString()
157 unsigned MaxLen = FileBuffer->getBufferSize() - StrTabIdx; in getString()
/external/llvm/include/llvm/Support/
DMemoryBuffer.h51 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
54 return StringRef(BufferStart, getBufferSize()); in getBuffer()
165 size_t getBufferSize() const { return Buffer.size(); } in getBufferSize() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMemoryBuffer.h57 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
60 return StringRef(BufferStart, getBufferSize()); in getBuffer()
175 size_t getBufferSize() const { return Buffer.size(); } in getBufferSize() function
/external/llvm-project/flang/lib/Parser/
Dsource.cpp45 llvm::StringRef content{buf_->getBufferStart(), buf_->getBufferSize()}; in IdentifyPayload()
135 llvm::WritableMemoryBuffer::getNewUninitMemBuffer(inbuf->getBufferSize()); in ReadStandardInput()
145 if (content().size() >= buf_->getBufferSize()) { in ReadFile()
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DSectCreateFile.h35 uint64_t size() const override { return _content->getBufferSize(); } in size()
50 return ArrayRef<uint8_t>(data, _content->getBufferSize()); in rawContent()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMemoryBuffer.h61 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
64 return StringRef(BufferStart, getBufferSize()); in getBuffer()
278 size_t getBufferSize() const { return Buffer.size(); } in getBufferSize() function
/external/llvm-project/clang/unittests/Basic/
DSourceManagerTest.cpp171 FileMgr.getVirtualFile("/mainFile.cpp", Buf->getBufferSize(), 0); in TEST_F()
175 FileMgr.getVirtualFile("/test-header.h", HeaderBuf->getBufferSize(), 0); in TEST_F()
291 HeaderBuf->getBufferSize(), 0); in TEST_F()
415 HeaderBuf->getBufferSize(), 0); in TEST_F()
500 FileMgr.getVirtualFile("mainFile.cpp", Buf->getBufferSize(), 0); in TEST_F()
506 FileMgr.getVirtualFile("file2.cpp", Buf2->getBufferSize(), 0); in TEST_F()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Drelease_test.cpp25 EXPECT_EQ(sizeof(scudo::uptr), Counters2N.getBufferSize()); in TEST()
28 EXPECT_EQ(sizeof(scudo::uptr), Counters2N1_1.getBufferSize()); in TEST()
33 Counters.getBufferSize()); in TEST()
/external/scudo/standalone/tests/
Drelease_test.cpp25 EXPECT_EQ(sizeof(scudo::uptr), Counters2N.getBufferSize()); in TEST()
28 EXPECT_EQ(sizeof(scudo::uptr), Counters2N1_1.getBufferSize()); in TEST()
33 Counters.getBufferSize()); in TEST()
/external/llvm-project/lldb/source/Utility/
DDataBufferLLVM.cpp35 return Buffer->getBufferSize(); in GetByteSize()
/external/llvm-project/llvm/include/llvm/Support/
DMemoryBuffer.h67 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
70 return StringRef(BufferStart, getBufferSize()); in getBuffer()

12345678