Lines Matching refs:iBlock
19586 int iBlock; in memsys5FreeUnsafe() local
19591 iBlock = (int)(((u8 *)pOld-mem5.zPool)/mem5.szAtom); in memsys5FreeUnsafe()
19594 assert( iBlock>=0 && iBlock<mem5.nBlock ); in memsys5FreeUnsafe()
19596 assert( (mem5.aCtrl[iBlock] & CTRL_FREE)==0 ); in memsys5FreeUnsafe()
19598 iLogsize = mem5.aCtrl[iBlock] & CTRL_LOGSIZE; in memsys5FreeUnsafe()
19600 assert( iBlock+size-1<(u32)mem5.nBlock ); in memsys5FreeUnsafe()
19602 mem5.aCtrl[iBlock] |= CTRL_FREE; in memsys5FreeUnsafe()
19603 mem5.aCtrl[iBlock+size-1] |= CTRL_FREE; in memsys5FreeUnsafe()
19611 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize; in memsys5FreeUnsafe()
19614 if( (iBlock>>iLogsize) & 1 ){ in memsys5FreeUnsafe()
19615 iBuddy = iBlock - size; in memsys5FreeUnsafe()
19617 iBuddy = iBlock + size; in memsys5FreeUnsafe()
19624 if( iBuddy<iBlock ){ in memsys5FreeUnsafe()
19626 mem5.aCtrl[iBlock] = 0; in memsys5FreeUnsafe()
19627 iBlock = iBuddy; in memsys5FreeUnsafe()
19629 mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize; in memsys5FreeUnsafe()
19638 memset(&mem5.zPool[iBlock*mem5.szAtom], 0x55, size); in memsys5FreeUnsafe()
19641 memsys5Link(iBlock, iLogsize); in memsys5FreeUnsafe()
147815 sqlite3_int64 iBlock, /* Block id for new block */
147822 sqlite3_bind_int64(pStmt, 1, iBlock);
149555 sqlite3_int64 iBlock; /* Current block id */
149709 sqlite3_int64 iPtr = pWriter->aNodeWriter[0].iBlock;
149761 rc = fts3WriteSegment(p, pNode->iBlock, pNode->block.a, pNode->block.n);
149767 iNextPtr = pNode->iBlock;
149768 pNode->iBlock++;
149881 rc = fts3WriteSegment(p, pLeaf->iBlock, pLeaf->block.a, pLeaf->block.n);
149901 pLeaf->iBlock++;
149986 &pBlock->a[1], pWriter->aNodeWriter[0].iBlock
149997 rc = fts3WriteSegment(p, pNode->iBlock, pNode->block.a, pNode->block.n);
150009 pWriter->aNodeWriter[0].iBlock, /* leaves_end_block */
150163 pWriter->aNodeWriter[i].iBlock = pWriter->iStart + i*pWriter->nLeafEst;
150167 pNode->iBlock = pWriter->iStart + pWriter->nLeafEst*nHeight;
150188 pNode->iBlock = reader.iChild;
150312 pWriter->aNodeWriter[i].iBlock = pWriter->iStart + i*pWriter->nLeafEst;
150492 sqlite3_int64 iBlock = 0; /* Block id */
150506 rc = fts3TruncateNode(aRoot, nRoot, &root, zTerm, nTerm, &iBlock);
150512 while( rc==SQLITE_OK && iBlock ){
150515 iNewStart = iBlock;
150517 rc = sqlite3Fts3ReadBlock(p, iBlock, &aBlock, &nBlock, 0);
150519 rc = fts3TruncateNode(aBlock, nBlock, &block, zTerm, nTerm, &iBlock);