/external/deqp/framework/delibs/debase/ |
D | deMemory.h | 35 void* deMalloc (int numBytes); 36 void* deCalloc (int numBytes); 37 void* deRealloc (void* ptr, int numBytes); 40 void* deAlignedMalloc (int numBytes, int alignBytes); 51 DE_INLINE void deMemset (void* ptr, int value, int numBytes) in deMemset() argument 54 memset(ptr, value, numBytes); in deMemset() 57 DE_INLINE int deMemCmp (const void* a, const void* b, int numBytes) in deMemCmp() argument 59 return memcmp(a, b, numBytes); in deMemCmp() 69 DE_INLINE void* deMemcpy (void* dst, const void* src, int numBytes) in deMemcpy() argument 71 return memcpy(dst, src, numBytes); in deMemcpy() [all …]
|
D | deMemory.c | 46 void* deMalloc (int numBytes) in deMalloc() argument 50 DE_ASSERT(numBytes > 0); in deMalloc() 52 ptr = malloc((size_t)numBytes); in deMalloc() 58 memset(ptr, 0xcd, numBytes); in deMalloc() 63 VALGRIND_MAKE_MEM_UNDEFINED(ptr, numBytes); in deMalloc() 76 void* deCalloc (int numBytes) in deCalloc() argument 78 void* ptr = deMalloc(numBytes); in deCalloc() 80 deMemset(ptr, 0, numBytes); in deCalloc() 84 void* deAlignedMalloc (int numBytes, int alignBytes) in deAlignedMalloc() argument 87 deUintptr origPtr = (deUintptr)deMalloc(numBytes + ptrSize + alignBytes); in deAlignedMalloc() [all …]
|
/external/deqp/modules/glshared/ |
D | glsBufferTestUtil.hpp | 54 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed); 55 …compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes); 90 void setSize (int numBytes); 91 void setData (int numBytes, const deUint8* bytes); 92 void setSubData (int offset, int numBytes, const deUint8* bytes); 123 …virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) = DE_NU… 124 …virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint3… 142 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes); 143 …void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targ… 160 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes); [all …]
|
D | glsBufferTestUtil.cpp | 68 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed) in fillWithRandomBytes() argument 70 …std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUin… in fillWithRandomBytes() 73 …l compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes) in compareByteArrays() argument 84 for (;ndx < numBytes; ndx++) in compareByteArrays() 233 void ReferenceBuffer::setSize (int numBytes) in setSize() argument 235 m_data.resize(numBytes); in setSize() 238 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes) in setData() argument 240 m_data.resize(numBytes); in setData() 241 std::copy(bytes, bytes+numBytes, m_data.begin()); in setData() 244 void ReferenceBuffer::setSubData (int offset, int numBytes, const deUint8* bytes) in setSubData() argument [all …]
|
/external/deqp/framework/delibs/decpp/ |
D | deMemPool.hpp | 51 void* alloc (deUintptr numBytes); 52 void* alignedAlloc (deUintptr numBytes, deUint32 alignBytes); 86 inline void* MemPool::alloc (deUintptr numBytes) in alloc() argument 89 DE_ASSERT((deUintptr)(int)numBytes == numBytes); in alloc() 90 void* ptr = deMemPool_alloc(m_pool, (int)numBytes); in alloc() 96 inline void* MemPool::alignedAlloc (deUintptr numBytes, deUint32 alignBytes) in alignedAlloc() argument 99 DE_ASSERT((deUintptr)(int)numBytes == numBytes); in alignedAlloc() 100 void* ptr = deMemPool_alignedAlloc(m_pool, (int)numBytes, alignBytes); in alignedAlloc()
|
D | deRingBuffer.cpp | 63 int numBytes = rnd.getInt(1, buffer.getNumElements()); in RingBuffer_selfTest() local 64 vector<int> tmp (numBytes); in RingBuffer_selfTest() 66 buffer.popBack(&tmp[0], numBytes); in RingBuffer_selfTest() 68 for (int i = 0; i < numBytes; i++) in RingBuffer_selfTest() 71 readPos += numBytes; in RingBuffer_selfTest() 77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree())); in RingBuffer_selfTest() local 78 buffer.pushFront(&data[writePos], numBytes); in RingBuffer_selfTest() 79 writePos += numBytes; in RingBuffer_selfTest()
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | IsValidUtf8TestUtil.java | 189 static void testBytes(int numBytes, long expectedCount) 191 testBytes(numBytes, expectedCount, 0, -1); 205 static void testBytes(int numBytes, long expectedCount, long start, long lim) 208 byte[] bytes = new byte[numBytes]; 211 lim = 1L << (numBytes * 8); 217 for (int i = 0; i < numBytes; i++) { 233 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes, 0, numBytes)); 237 int i = rnd.nextInt(numBytes); 238 int j = rnd.nextInt(numBytes); 244 int state3 = Utf8.partialIsValidUtf8(state2, bytes, j, numBytes); [all …]
|
/external/gptfdisk/ |
D | diskio-windows.cc | 215 int DiskIO::Read(void* buffer, int numBytes) { in Read() argument 228 if (numBytes <= blockSize) { in Read() 232 numBlocks = numBytes / blockSize; in Read() 233 if ((numBytes % blockSize) != 0) in Read() 244 for (i = 0; i < numBytes; i++) { in Read() 249 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Read() 250 retval = numBytes; in Read() 259 int DiskIO::Write(void* buffer, int numBytes) { in Write() argument 272 if (numBytes <= blockSize) { in Write() 276 numBlocks = numBytes / blockSize; in Write() [all …]
|
D | diskio-unix.cc | 295 int DiskIO::Read(void* buffer, int numBytes) { in Read() argument 307 if (numBytes <= blockSize) { in Read() 311 numBlocks = numBytes / blockSize; in Read() 312 if ((numBytes % blockSize) != 0) in Read() 323 memcpy(buffer, tempSpace, numBytes); in Read() 326 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Read() 327 retval = numBytes; in Read() 338 int DiskIO::Write(void* buffer, int numBytes) { in Write() argument 350 if (numBytes <= blockSize) { in Write() 354 numBlocks = numBytes / blockSize; in Write() [all …]
|
/external/deqp/executor/ |
D | xeBatchExecutor.cpp | 281 void BatchExecutor::onTestLogData (const deUint8* bytes, int numBytes) in onTestLogData() argument 285 m_testLogParser.parse(bytes, numBytes); in onTestLogData() 294 void BatchExecutor::onInfoLogData (const deUint8* bytes, int numBytes) in onInfoLogData() argument 296 if (numBytes > 0 && m_infoLog) in onInfoLogData() 297 m_infoLog->append(bytes, numBytes); in onInfoLogData() 356 void BatchExecutor::enqueueTestLogData (void* userPtr, const deUint8* bytes, int numBytes) in enqueueTestLogData() argument 362 << numBytes; in enqueueTestLogData() 364 writer.write(bytes, numBytes); in enqueueTestLogData() 368 void BatchExecutor::enqueueInfoLogData (void* userPtr, const deUint8* bytes, int numBytes) in enqueueInfoLogData() argument 374 << numBytes; in enqueueInfoLogData() [all …]
|
D | xeCallQueue.cpp | 163 void CallReader::read (deUint8* bytes, int numBytes) in read() argument 165 DE_ASSERT(m_curPos + numBytes <= m_call->getDataSize()); in read() 166 deMemcpy(bytes, m_call->getData()+m_curPos, numBytes); in read() 167 m_curPos += numBytes; in read() 170 const deUint8* CallReader::getDataBlock (int numBytes) in getDataBlock() argument 172 DE_ASSERT(m_curPos + numBytes <= m_call->getDataSize()); in getDataBlock() 175 m_curPos += numBytes; in getDataBlock() 212 void CallWriter::write (const deUint8* bytes, int numBytes) in write() argument 216 m_call->setDataSize(curPos+numBytes); in write() 217 deMemcpy(m_call->getData()+curPos, bytes, numBytes); in write()
|
D | xeContainerFormatParser.cpp | 65 void ContainerFormatParser::feed (const deUint8* bytes, int numBytes) in feed() argument 68 if (m_buf.getNumFree() < numBytes) in feed() 69 m_buf.resize(getNextBufferSize(m_buf.getSize(), m_buf.getNumElements()+numBytes)); in feed() 72 m_buf.pushFront(bytes, numBytes); in feed() 109 void ContainerFormatParser::getData (deUint8* dst, int numBytes, int offset) in getData() argument 111 …DE_ASSERT(de::inBounds(offset, 0, m_elementLen) && numBytes > 0 && de::inRange(numBytes+offset, 0,… in getData() 113 for (int ndx = 0; ndx < numBytes; ndx++) in getData()
|
/external/deqp/modules/gles2/functional/ |
D | es2fBufferTestUtil.hpp | 50 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed); 51 …compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes); 83 void setSize (int numBytes); 84 void setData (int numBytes, const deUint8* bytes); 85 void setSubData (int offset, int numBytes, const deUint8* bytes); 112 …virtual bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes) = … 132 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes); 149 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes); 165 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes);
|
D | es2fBufferTestUtil.cpp | 70 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed) in fillWithRandomBytes() argument 72 …std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUin… in fillWithRandomBytes() 75 …l compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes) in compareByteArrays() argument 86 for (;ndx < numBytes; ndx++) in compareByteArrays() 221 void ReferenceBuffer::setSize (int numBytes) in setSize() argument 223 m_data.resize(numBytes); in setSize() 226 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes) in setData() argument 228 m_data.resize(numBytes); in setData() 229 std::copy(bytes, bytes+numBytes, m_data.begin()); in setData() 232 void ReferenceBuffer::setSubData (int offset, int numBytes, const deUint8* bytes) in setSubData() argument [all …]
|
/external/deqp/framework/delibs/dethread/win32/ |
D | deThreadWin32.c | 119 static SYSTEM_LOGICAL_PROCESSOR_INFORMATION* getWin32ProcessorInfo (deUint32* numBytes) in getWin32ProcessorInfo() argument 131 *numBytes = inOutLen; in getWin32ProcessorInfo() 158 …cessorInfo (ProcessorInfo* dst, const SYSTEM_LOGICAL_PROCESSOR_INFORMATION* src, deUint32 numBytes) in parseWin32ProcessorInfo() argument 164 …nst deUint8*)cur - (const deUint8*)src) + sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION) <= numBytes) in parseWin32ProcessorInfo() 182 deUint32 numBytes = 0; in getProcessorInfo() local 183 SYSTEM_LOGICAL_PROCESSOR_INFORMATION* rawInfo = getWin32ProcessorInfo(&numBytes); in getProcessorInfo() 185 if (!numBytes) in getProcessorInfo() 188 parseWin32ProcessorInfo(info, rawInfo, numBytes); in getProcessorInfo()
|
/external/deqp/framework/delibs/depool/ |
D | deMemPool.c | 426 DE_INLINE void* deMemPool_allocInternal (deMemPool* pool, int numBytes, deUint32 alignBytes) in deMemPool_allocInternal() argument 442 void* ptr = deAlignedMalloc(numBytes, alignBytes); in deMemPool_allocInternal() 466 if (numBytes + alignPadding > curPage->capacity - curPage->bytesAllocated) in deMemPool_allocInternal() 470 …int newPageCapacity = deMax32(deMin32(2*curPage->capacity, MAX_PAGE_SIZE), numBytes+maxAlignPadd… in deMemPool_allocInternal() 485 DE_ASSERT(numBytes + alignPadding <= curPage->capacity); in deMemPool_allocInternal() 488 curPage->bytesAllocated += numBytes+alignPadding; in deMemPool_allocInternal() 499 void* deMemPool_alloc (deMemPool* pool, int numBytes) in deMemPool_alloc() argument 503 DE_ASSERT(numBytes > 0); in deMemPool_alloc() 504 ptr = deMemPool_allocInternal(pool, numBytes, DE_POOL_DEFAULT_ALLOC_ALIGNMENT); in deMemPool_alloc() 517 void* deMemPool_alignedAlloc (deMemPool* pool, int numBytes, deUint32 alignBytes) in deMemPool_alignedAlloc() argument [all …]
|
/external/mesa3d/src/mesa/main/ |
D | eval.c | 556 GLsizei numBytes; in _mesa_GetnMapdvARB() local 581 numBytes = n * sizeof *v; in _mesa_GetnMapdvARB() 582 if (bufSize < numBytes) in _mesa_GetnMapdvARB() 591 numBytes = 1 * sizeof *v; in _mesa_GetnMapdvARB() 592 if (bufSize < numBytes) in _mesa_GetnMapdvARB() 597 numBytes = 2 * sizeof *v; in _mesa_GetnMapdvARB() 598 if (bufSize < numBytes) in _mesa_GetnMapdvARB() 606 numBytes = 2 * sizeof *v; in _mesa_GetnMapdvARB() 607 if (bufSize < numBytes) in _mesa_GetnMapdvARB() 613 numBytes = 4 * sizeof *v; in _mesa_GetnMapdvARB() [all …]
|
/external/deqp/execserver/ |
D | xsWin32TestProcess.hpp | 121 int read (deUint8* dst, int numBytes) { return m_logBuffer.tryRead(numBytes, dst); } in read() argument 192 virtual int readTestLog (deUint8* dst, int numBytes); 193 …virtual int readInfoLog (deUint8* dst, int numBytes) { return m_infoBuffer.tryRead(numBytes,… in readInfoLog() argument
|
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/stub/command/ |
D | FileRetrCommandHandler.java | 88 int numBytes; in processData() local 89 while ((numBytes = inputStream.read(buffer)) != -1) { in processData() 90 LOG.trace("Sending " + numBytes + " bytes..."); in processData() 91 session.sendData(buffer, numBytes); in processData()
|
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/stub/command/ |
D | FileRetrCommandHandler.java | 88 int numBytes; in processData() local 89 while ((numBytes = inputStream.read(buffer)) != -1) { in processData() 90 LOG.trace("Sending " + numBytes + " bytes..."); in processData() 91 session.sendData(buffer, numBytes); in processData()
|
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/stub/command/ |
D | FileRetrCommandHandler.java | 88 int numBytes; in processData() local 89 while ((numBytes = inputStream.read(buffer)) != -1) { in processData() 90 LOG.trace("Sending " + numBytes + " bytes..."); in processData() 91 session.sendData(buffer, numBytes); in processData()
|
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/stub/command/ |
D | FileRetrCommandHandler.java | 88 int numBytes; in processData() local 89 while ((numBytes = inputStream.read(buffer)) != -1) { in processData() 90 LOG.trace("Sending " + numBytes + " bytes..."); in processData() 91 session.sendData(buffer, numBytes); in processData()
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
D | FileRetrCommandHandler.java | 88 int numBytes; in processData() local 89 while ((numBytes = inputStream.read(buffer)) != -1) { in processData() 90 LOG.trace("Sending " + numBytes + " bytes..."); in processData() 91 session.sendData(buffer, numBytes); in processData()
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
D | FileRetrCommandHandler.java | 88 int numBytes; in processData() local 89 while ((numBytes = inputStream.read(buffer)) != -1) { in processData() 90 LOG.trace("Sending " + numBytes + " bytes..."); in processData() 91 session.sendData(buffer, numBytes); in processData()
|
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/stub/command/ |
D | FileRetrCommandHandler.java | 88 int numBytes; in processData() local 89 while ((numBytes = inputStream.read(buffer)) != -1) { in processData() 90 LOG.trace("Sending " + numBytes + " bytes..."); in processData() 91 session.sendData(buffer, numBytes); in processData()
|