HomeSort by relevance Sort by last modified time
    Searched full:numbytes (Results 1 - 25 of 448) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/deqp/framework/delibs/debase/
deMemory.c 57 * \param numBytes Number of bytes to allocate.
60 void* deMalloc (size_t numBytes)
64 DE_ASSERT(numBytes > 0);
66 ptr = malloc((size_t)numBytes);
72 memset(ptr, 0xcd, numBytes);
77 VALGRIND_MAKE_MEM_UNDEFINED(ptr, numBytes);
87 * \param numBytes Number of bytes to allocate.
90 void* deCalloc (size_t numBytes)
92 void* ptr = deMalloc(numBytes);
94 deMemset(ptr, 0, numBytes);
    [all...]
deMemory.h 35 void* deMalloc (size_t numBytes);
36 void* deCalloc (size_t numBytes);
37 void* deRealloc (void* ptr, size_t numBytes);
40 void* deAlignedMalloc (size_t numBytes, size_t alignBytes);
41 void* deAlignedRealloc(void* ptr, size_t numBytes, size_t alignBytes);
50 * \param numBytes Number of bytes to write.
52 DE_INLINE void deMemset (void* ptr, int value, size_t numBytes)
55 memset(ptr, value, numBytes);
58 DE_INLINE int deMemCmp (const void* a, const void* b, size_t numBytes)
60 return memcmp(a, b, numBytes);
    [all...]
  /external/llvm/unittests/MC/
Disassembler.cpp 39 unsigned NumBytes = sizeof(Bytes);
42 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString,
48 NumBytes -= InstSize;
50 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString,
56 NumBytes -= InstSize;
58 InstSize = LLVMDisasmInstruction(DCR, BytesP, NumBytes, PC, OutString,
  /ndk/tests/device/test-stlport_shared-exception/jni/
delete3_1.cpp 20 void* operator new(size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
22 return operator new(numBytes, std::nothrow);
  /ndk/tests/device/test-stlport_static-exception/jni/
delete3_1.cpp 20 void* operator new(size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
22 return operator new(numBytes, std::nothrow);
  /external/deqp/modules/glshared/
glsBufferTestUtil.hpp 54 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed);
55 bool 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_NULL;
124 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint);
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 targetHint);
160 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes)
    [all...]
glsBufferTestUtil.cpp 68 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed)
70 std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUint8>::end(), ptr);
73 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes)
84 for (;ndx < numBytes; ndx++)
233 void ReferenceBuffer::setSize (int numBytes)
235 m_data.resize(numBytes);
238 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes)
240 m_data.resize(numBytes);
241 std::copy(bytes, bytes+numBytes, m_data.begin());
244 void ReferenceBuffer::setSubData (int offset, int numBytes, const deUint8* bytes
    [all...]
  /frameworks/av/media/libstagefright/
VBRISeeker.cpp 109 uint32_t numBytes;
111 case 1: numBytes = buffer[i]; break;
112 case 2: numBytes = U16_AT(buffer + 2 * i); break;
113 case 3: numBytes = U24_AT(buffer + 3 * i); break;
117 numBytes = U32_AT(buffer + 4 * i); break;
121 numBytes *= scale;
123 seeker->mSegments.push(numBytes);
125 ALOGV("entry #%zu: %u offset %#016llx", i, numBytes, (long long)offset);
126 offset += numBytes;
  /external/deqp/framework/delibs/decpp/
deRingBuffer.cpp 63 int numBytes = rnd.getInt(1, buffer.getNumElements());
64 vector<int> tmp (numBytes);
66 buffer.popBack(&tmp[0], numBytes);
68 for (int i = 0; i < numBytes; i++)
71 readPos += numBytes;
77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree()));
78 buffer.pushFront(&data[writePos], numBytes);
79 writePos += numBytes;
deMemPool.hpp 51 void* alloc (deUintptr numBytes);
52 void* alignedAlloc (deUintptr numBytes, deUint32 alignBytes);
86 inline void* MemPool::alloc (deUintptr numBytes)
89 DE_ASSERT((deUintptr)(int)numBytes == numBytes);
90 void* ptr = deMemPool_alloc(m_pool, (int)numBytes);
96 inline void* MemPool::alignedAlloc (deUintptr numBytes, deUint32 alignBytes)
99 DE_ASSERT((deUintptr)(int)numBytes == numBytes);
100 void* ptr = deMemPool_alignedAlloc(m_pool, (int)numBytes, alignBytes)
    [all...]
  /external/protobuf/java/src/test/java/com/google/protobuf/
IsValidUtf8TestUtil.java 186 * @param numBytes the number of bytes in the byte array
189 static void testBytes(int numBytes, long expectedCount)
191 testBytes(numBytes, expectedCount, 0, -1);
199 * @param numBytes the number of bytes in the byte array
203 * or -1 to mean the max limit for numBytes
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));
    [all...]
  /frameworks/rs/
rsStream.cpp 30 void IStream::loadByteArray(void *dest, size_t numBytes) {
31 memcpy(dest, mData + mPos, numBytes);
32 mPos += numBytes;
65 void OStream::addByteArray(const void *src, size_t numBytes) {
67 while (mPos + numBytes >= mLength) {
70 memcpy(mData + mPos, src, numBytes);
71 mPos += numBytes;
  /external/deqp/executor/
xeBatchExecutor.cpp 287 void BatchExecutor::onTestLogData (const deUint8* bytes, size_t numBytes)
291 m_testLogParser.parse(bytes, numBytes);
300 void BatchExecutor::onInfoLogData (const deUint8* bytes, size_t numBytes)
302 if (numBytes > 0 && m_infoLog)
303 m_infoLog->append(bytes, numBytes);
362 void BatchExecutor::enqueueTestLogData (void* userPtr, const deUint8* bytes, size_t numBytes)
368 << numBytes;
370 writer.write(bytes, numBytes);
374 void BatchExecutor::enqueueInfoLogData (void* userPtr, const deUint8* bytes, size_t numBytes)
380 << numBytes;
    [all...]
xeCallQueue.cpp 178 void CallReader::read (deUint8* bytes, size_t numBytes)
180 DE_ASSERT(m_curPos + numBytes <= m_call->getDataSize());
181 deMemcpy(bytes, m_call->getData()+m_curPos, numBytes);
182 m_curPos += numBytes;
185 const deUint8* CallReader::getDataBlock (size_t numBytes)
187 DE_ASSERT(m_curPos + numBytes <= m_call->getDataSize());
190 m_curPos += numBytes;
232 void CallWriter::write (const deUint8* bytes, size_t numBytes)
236 m_call->setDataSize(curPos+numBytes);
237 deMemcpy(m_call->getData()+curPos, bytes, numBytes);
    [all...]
  /external/llvm/lib/Target/MSP430/
MSP430FrameLowering.cpp 56 uint64_t NumBytes = 0;
60 NumBytes = FrameSize - MSP430FI->getCalleeSavedFrameSize();
65 MFI->setOffsetAdjustment(-NumBytes);
81 NumBytes = StackSize - MSP430FI->getCalleeSavedFrameSize();
90 if (NumBytes) { // adjust stack pointer: SP -= numbytes
93 //NumBytes -= mergeSPUpdates(MBB, MBBI, true);
96 // mergeSPUpdatesDown(MBB, MBBI, &NumBytes);
98 if (NumBytes) {
101 .addReg(MSP430::SP).addImm(NumBytes);
    [all...]
  /libcore/ojluni/src/main/native/
FileChannelImpl.c 179 size_t numBytes = 0;
187 result = sendfilev64(dstFD, &sfv, 1, &numBytes);
190 * transferred, so we check numBytes first.
192 if (numBytes > 0)
193 return numBytes;
208 off_t numBytes;
211 numBytes = count;
214 result = sendfile(srcFD, dstFD, position, &numBytes, NULL, 0);
217 if (numBytes > 0)
218 return numBytes;
    [all...]
  /external/llvm/lib/Target/Sparc/
SparcFrameLowering.cpp 43 int NumBytes,
51 if (NumBytes >= -4096 && NumBytes < 4096) {
53 .addReg(SP::O6).addImm(NumBytes);
59 if (NumBytes >= 0) {
61 // sethi %hi(NumBytes), %g1
62 // or %g1, %lo(NumBytes), %g1
65 .addImm(HI22(NumBytes));
67 .addReg(SP::G1).addImm(LO10(NumBytes));
74 // sethi %hix(NumBytes), %g
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
CountingSecureRandom.java 39 public byte[] generateSeed(int numBytes) {
40 if (numBytes > 0) {
41 mOutputSizeBytes.addAndGet(numBytes);
43 return mDelegate.generateSeed(numBytes);
  /external/clang/test/SemaObjC/
objc-string-constant.m 19 int numBytes;
  /external/deqp/modules/gles2/functional/
es2fBufferTestUtil.hpp 50 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed);
51 bool 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) = DE_NULL;
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);
  /external/llvm/lib/Target/ARM/
Thumb1FrameLowering.cpp 46 int NumBytes, unsigned MIFlags = MachineInstr::NoFlags) {
47 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII,
99 unsigned NumBytes = MFI->getStackSize();
100 assert(NumBytes >= ArgRegsSaveSize &&
101 "ArgRegsSaveSize is included in NumBytes");
113 NumBytes = (NumBytes + 3) & ~3;
114 MFI->setStackSize(NumBytes);
133 if (NumBytes - ArgRegsSaveSize != 0) {
134 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -(NumBytes - ArgRegsSaveSize)
    [all...]
  /external/skia/src/codec/
SkJpegUtility_codec.cpp 40 static void sk_skip_input_data(j_decompress_ptr dinfo, long numBytes) {
42 size_t bytes = (size_t) numBytes;
55 src->next_input_byte += numBytes;
56 src->bytes_in_buffer -= numBytes;
  /libcore/ojluni/src/main/java/sun/misc/
CharacterEncoder.java 144 int numBytes;
150 numBytes = readFully(inStream, tmpbuffer);
151 if (numBytes == 0) {
154 encodeLinePrefix(outStream, numBytes);
155 for (j = 0; j < numBytes; j += bytesPerAtom()) {
157 if ((j + bytesPerAtom()) <= numBytes) {
160 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j);
163 if (numBytes < bytesPerLine()) {
279 int numBytes;
285 numBytes = readFully(inStream, tmpbuffer)
    [all...]
  /system/media/audio_utils/spdif/
SPDIFEncoder.cpp 127 void SPDIFEncoder::writeBurstBufferBytes(const uint8_t *buffer, size_t numBytes)
129 size_t bytesToWrite = numBytes;
184 uint16_t numBytes = (mByteCursor - preambleSize);
185 mBurstBuffer[3] = mFramer->convertBytesToLengthCode(numBytes);
228 ssize_t SPDIFEncoder::write( const void *buffer, size_t numBytes )
230 size_t bytesLeft = numBytes;
232 ALOGV("SPDIFEncoder: mScanning = %d, write(buffer[0] = 0x%02X, numBytes = %zu)",
233 mScanning, (uint) *data, numBytes);
272 return numBytes;
  /external/gptfdisk/
diskio-windows.cc 215 int DiskIO::Read(void* buffer, int numBytes) {
228 if (numBytes <= blockSize) {
232 numBlocks = numBytes / blockSize;
233 if ((numBytes % blockSize) != 0)
244 for (i = 0; i < numBytes; i++) {
249 if (((numBlocks * blockSize) != numBytes) && (retval > 0))
250 retval = numBytes;
259 int DiskIO::Write(void* buffer, int numBytes) {
272 if (numBytes <= blockSize) {
276 numBlocks = numBytes / blockSize
    [all...]

Completed in 3798 milliseconds

1 2 3 4 5 6 7 8 91011>>