Home
last modified time | relevance | path

Searched refs:numBlocks (Results 1 – 25 of 38) sorted by relevance

12

/external/gptfdisk/
Ddiskio-windows.cc216 int blockSize = 512, i, numBlocks; in Read() local
229 numBlocks = 1; in Read()
232 numBlocks = numBytes / blockSize; in Read()
234 numBlocks++; in Read()
235 tempSpace = new char [numBlocks * blockSize]; in Read()
243 ReadFile(fd, tempSpace, numBlocks * blockSize, &retval, NULL); in Read()
249 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Read()
260 int blockSize = 512, i, numBlocks, retval = 0; in Write() local
273 numBlocks = 1; in Write()
276 numBlocks = numBytes / blockSize; in Write()
[all …]
Ddiskio-unix.cc296 int blockSize, numBlocks, retval = 0; in Read() local
308 numBlocks = 1; in Read()
311 numBlocks = numBytes / blockSize; in Read()
313 numBlocks++; in Read()
314 tempSpace = new char [numBlocks * blockSize]; in Read()
322 retval = read(fd, tempSpace, numBlocks * blockSize); in Read()
326 if (((numBlocks * blockSize) != numBytes) && (retval > 0)) in Read()
339 int blockSize = 512, i, numBlocks, retval = 0; in Write() local
351 numBlocks = 1; in Write()
354 numBlocks = numBytes / blockSize; in Write()
[all …]
/external/ipsec-tools/src/racoon/missing/crypto/rijndael/
Drijndael-api-fst.c95 int i, k, numBlocks; in rijndael_blockEncrypt() local
107 numBlocks = inputLen/128; in rijndael_blockEncrypt()
111 for (i = numBlocks; i > 0; i--) { in rijndael_blockEncrypt()
134 for (i = numBlocks - 1; i > 0; i--) { in rijndael_blockEncrypt()
163 for (i = numBlocks; i > 0; i--) { in rijndael_blockEncrypt()
195 return 128*numBlocks; in rijndael_blockEncrypt()
209 int i, numBlocks, padLen; in rijndael_padEncrypt() local
221 numBlocks = inputOctets/16; in rijndael_padEncrypt()
225 for (i = numBlocks; i > 0; i--) { in rijndael_padEncrypt()
230 padLen = 16 - (inputOctets - 16*numBlocks); in rijndael_padEncrypt()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DSICBlockCipher.java197 long numBlocks = (n + byteCount) / blockSize; in adjustCounter() local
199 if (numBlocks > 255) in adjustCounter()
201 long gap = numBlocks; in adjustCounter()
219 incrementCounter((int)numBlocks); in adjustCounter()
222 byteCount = (int)((n + byteCount) - (blockSize * numBlocks)); in adjustCounter()
226 long numBlocks = (-n - byteCount) / blockSize; in adjustCounter() local
228 if (numBlocks > 255) in adjustCounter()
230 long gap = numBlocks; in adjustCounter()
251 for (long i = 0; i != numBlocks; i++) in adjustCounter()
257 int gap = (int)(byteCount + n + (blockSize * numBlocks)); in adjustCounter()
/external/lzma/C/
DXzIn.c50 for (i = 0; i < p->numBlocks; i++) in Xz_GetUnpackSize()
59 for (i = 0; i < p->numBlocks; i++) in Xz_GetPackSize()
73 size_t i, numBlocks, crcStartPos, pos = 1; in Xz_ReadIndex2() local
87 numBlocks = (size_t)numBlocks64; in Xz_ReadIndex2()
88 if (numBlocks != numBlocks64 || numBlocks * 2 > size) in Xz_ReadIndex2()
94 if (numBlocks != 0) in Xz_ReadIndex2()
96 p->numBlocks = numBlocks; in Xz_ReadIndex2()
97 p->numBlocksAllocated = numBlocks; in Xz_ReadIndex2()
98 p->blocks = alloc->Alloc(alloc, sizeof(CXzBlockSizes) * numBlocks); in Xz_ReadIndex2()
101 for (i = 0; i < numBlocks; i++) in Xz_ReadIndex2()
[all …]
DXzEnc.c85 unsigned pos = 1 + Xz_WriteVarInt(buf + 1, p->numBlocks); in Xz_WriteFooter()
91 for (i = 0; i < p->numBlocks; i++) in Xz_WriteFooter()
126 if (p->blocks == 0 || p->numBlocksAllocated == p->numBlocks) in Xz_AddIndexRecord()
128 size_t num = (p->numBlocks + 1) * 2; in Xz_AddIndexRecord()
136 if (p->numBlocks != 0) in Xz_AddIndexRecord()
138 memcpy(blocks, p->blocks, p->numBlocks * sizeof(CXzBlockSizes)); in Xz_AddIndexRecord()
145 CXzBlockSizes *block = &p->blocks[p->numBlocks++]; in Xz_AddIndexRecord()
DXz.c27 p->numBlocks = p->numBlocksAllocated = 0; in Xz_Construct()
35 p->numBlocks = p->numBlocksAllocated = 0; in Xz_Free()
DLzFindMt.c100 …Sync_Create2(CMtSync *p, unsigned (MY_STD_CALL *startAddress)(void *), void *obj, UInt32 numBlocks) in MtSync_Create2() argument
112 RINOK_THREAD(Semaphore_Create(&p->freeSemaphore, numBlocks, numBlocks)); in MtSync_Create2()
113 RINOK_THREAD(Semaphore_Create(&p->filledSemaphore, 0, numBlocks)); in MtSync_Create2()
122 …tSync_Create(CMtSync *p, unsigned (MY_STD_CALL *startAddress)(void *), void *obj, UInt32 numBlocks) in MtSync_Create() argument
124 SRes res = MtSync_Create2(p, startAddress, obj, numBlocks); in MtSync_Create()
DXz.h108 size_t numBlocks; member
207 UInt64 numBlocks; member
/external/pdfium/third_party/bigint/
DBigIntegerUtils.hh55 unsigned int numBlocks = (length + piecesPerBlock - 1) / piecesPerBlock; in dataToBigInteger() local
58 BigInteger::Blk *blocks = new BigInteger::Blk[numBlocks]; in dataToBigInteger()
63 for (blockNum = 0, pieceNum = 0; blockNum < numBlocks; blockNum++) { in dataToBigInteger()
72 BigInteger x(blocks, numBlocks, sign); in dataToBigInteger()
/external/deqp/modules/gles3/functional/
Des3fASTCDecompressionCases.cpp787 const int numBlocks = divRoundUp(numValues, 5); in encodeISE() local
788 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in encodeISE()
790 const int numValuesInBlock = blockNdx == numBlocks-1 ? numValues - 5*(numBlocks-1) : 5; in encodeISE()
799 const int numBlocks = divRoundUp(numValues, 3); in encodeISE() local
800 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in encodeISE()
802 const int numValuesInBlock = blockNdx == numBlocks-1 ? numValues - 3*(numBlocks-1) : 3; in encodeISE()
968 const int numBlocks = 1<<13; in generateBlockCaseTestData() local
970 dst.reserve(numBlocks*ASTC_BLOCK_SIZE_BYTES); in generateBlockCaseTestData()
972 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in generateBlockCaseTestData()
974 const deUint32 baseValue = blockNdx*(numValues-1) / (numBlocks-1); in generateBlockCaseTestData()
[all …]
/external/sonivox/arm-hybrid-22k/lib_src/
Deas_imaadpcm.c323 EAS_I32 numBlocks; in IMADecoderLocate() local
327 numBlocks = (EAS_I32) (pState->loopStart / pState->blockSize); in IMADecoderLocate()
328 samplesInLastBlock = (EAS_I32) pState->loopStart - (numBlocks * pState->blockSize); in IMADecoderLocate()
337 samplesPerLoop = numBlocks * samplesPerBlock + samplesInLastBlock; in IMADecoderLocate()
340 …EAS_ReportEx(_EAS_SEVERITY_NOFILTER, 0x2380b977, 0x00000007 , numBlocks, samplesPerLoop, samplesIn… in IMADecoderLocate()
/external/deqp/framework/delibs/decpp/
DdeBlockBuffer.hpp52 BlockBuffer (int blockSize, int numBlocks);
99 BlockBuffer<T>::BlockBuffer (int blockSize, int numBlocks) in BlockBuffer() argument
107 , m_numBlocks (numBlocks) in BlockBuffer()
115 DE_ASSERT(numBlocks > 0); in BlockBuffer()
130 m_empty = deSemaphore_create(numBlocks, DE_NULL); in BlockBuffer()
/external/sonivox/arm-fm-22k/lib_src/
Deas_imaadpcm.c323 EAS_I32 numBlocks; in IMADecoderLocate() local
327 numBlocks = (EAS_I32) (pState->loopStart / pState->blockSize); in IMADecoderLocate()
328 samplesInLastBlock = (EAS_I32) pState->loopStart - (numBlocks * pState->blockSize); in IMADecoderLocate()
337 samplesPerLoop = numBlocks * samplesPerBlock + samplesInLastBlock; in IMADecoderLocate()
340 …EAS_ReportEx(_EAS_SEVERITY_NOFILTER, 0x2380b977, 0x00000007 , numBlocks, samplesPerLoop, samplesIn… in IMADecoderLocate()
/external/sonivox/arm-wt-22k/lib_src/
Deas_imaadpcm.c323 EAS_I32 numBlocks; in IMADecoderLocate() local
327 numBlocks = (EAS_I32) (pState->loopStart / pState->blockSize); in IMADecoderLocate()
328 samplesInLastBlock = (EAS_I32) pState->loopStart - (numBlocks * pState->blockSize); in IMADecoderLocate()
337 samplesPerLoop = numBlocks * samplesPerBlock + samplesInLastBlock; in IMADecoderLocate()
340 …EAS_ReportEx(_EAS_SEVERITY_NOFILTER, 0x2380b977, 0x00000007 , numBlocks, samplesPerLoop, samplesIn… in IMADecoderLocate()
/external/deqp/execserver/
DxsPosixFileReader.cpp33 FileReader::FileReader (int blockSize, int numBlocks) in FileReader() argument
35 , m_buf (blockSize, numBlocks) in FileReader()
DxsPosixFileReader.hpp38 FileReader (int blockSize, int numBlocks);
/external/skia/src/gpu/
DGrLayerHoister.cpp143 if (0 == topLevelGPUData->numBlocks()) { in FindLayersToAtlas()
147 atlased->setReserve(atlased->count() + topLevelGPUData->numBlocks()); in FindLayersToAtlas()
149 for (int i = 0; i < topLevelGPUData->numBlocks(); ++i) { in FindLayersToAtlas()
200 if (0 == topLevelGPUData->numBlocks()) { in FindLayersToHoist()
205 for (int i = 0; i < topLevelGPUData->numBlocks(); ++i) { in FindLayersToHoist()
/external/skia/src/core/
DSkChunkAlloc.cpp211 int numBlocks = 0; in validate() local
218 ++numBlocks; in validate()
228 SkASSERT(fBlockCount == numBlocks); in validate()
DSkDeque.cpp220 int numBlocks = 0; in numBlocksAllocated() local
223 ++numBlocks; in numBlocksAllocated()
226 return numBlocks; in numBlocksAllocated()
DSkLayerInfo.h67 int numBlocks() const { return fBlocks.count(); } in numBlocks() function
/external/deqp/modules/glshared/
DglsUniformBlockCase.cpp667 int numBlocks = (int)layout.blocks.size(); in generateValues() local
669 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in generateValues()
1308 int numBlocks = (int)srcLayout.blocks.size(); in copyUniformData() local
1310 for (int srcBlockNdx = 0; srcBlockNdx < numBlocks; srcBlockNdx++) in copyUniformData()
1493 int numBlocks = (int)glLayout.blocks.size(); in iterate() local
1494 vector<vector<deUint8> > glData (numBlocks); in iterate()
1497 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in iterate()
1505 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in iterate()
1524 int numBlocks = (int)glLayout.blocks.size(); in iterate() local
1532 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in iterate()
[all …]
/external/deqp/modules/gles31/functional/
Des31fSSBOLayoutCase.cpp688 int numBlocks = interface.getNumBlocks(); in computeReferenceLayout() local
690 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in computeReferenceLayout()
784 const int numBlocks = (int)layout.blocks.size(); in generateValues() local
786 DE_ASSERT(numBlocks == (int)blockPointers.size()); in generateValues()
788 for (int blockNdx = 0; blockNdx < numBlocks; blockNdx++) in generateValues()
1537 int numBlocks = (int)srcLayout.blocks.size(); in copyData() local
1539 for (int srcBlockNdx = 0; srcBlockNdx < numBlocks; srcBlockNdx++) in copyData()
1784 const int numBlocks = (int)refLayout.blocks.size(); in compareData() local
1787 for (int refBlockNdx = 0; refBlockNdx < numBlocks; refBlockNdx++) in compareData()
2158 const int numBlocks = (int)glLayout.blocks.size(); in iterate() local
[all …]
/external/skia/tests/
DMemsetTest.cpp13 size_t capacity, size_t used, int numBlocks) { in check_alloc() argument
16 SkDEBUGCODE(REPORTER_ASSERT(reporter, alloc.blockCount() == numBlocks);) in check_alloc()
/external/lzma/CPP/7zip/Common/
DStreamObjects.cpp162 size_t numBlocks = (size_t)1 << _numBlocksLog; in Init() local
163 for (size_t i = 0; i < numBlocks; i++) in Init()

12