Lines Matching refs:ii
17578 int ii; /* Loop counter */
17609 for(ii=0; ii<=LOGMAX; ii++){
17610 mem5.aiFreelist[ii] = -1;
17614 for(ii=LOGMAX; ii>=0; ii--){
17615 int nAlloc = (1<<ii);
17617 mem5.aCtrl[iOffset] = ii | CTRL_FREE;
17618 memsys5Link(iOffset, ii);
26579 int ii;
26584 for(ii=(int)strlen(zDirname); ii>1 && zDirname[ii]!='/'; ii--);
26585 if( ii>0 ){
26586 zDirname[ii] = '\0';
39699 int ii; /* Loop counter */
39711 for(ii=0; ii<pPager->nSavepoint; ii++){
39712 if( pPager->aSavepoint[ii].iHdrOffset==0 ){
39713 pPager->aSavepoint[ii].iHdrOffset = pPager->journalOff;
40031 int ii; /* Iterator for looping through Pager.aSavepoint */
40032 for(ii=0; ii<pPager->nSavepoint; ii++){
40033 sqlite3BitvecDestroy(pPager->aSavepoint[ii].pInSavepoint);
40050 int ii; /* Loop counter */
40053 for(ii=0; ii<pPager->nSavepoint; ii++){
40054 PagerSavepoint *p = &pPager->aSavepoint[ii];
41651 u32 ii; /* Loop counter */
41667 for(ii=0; rc==SQLITE_OK && ii<nJRec && pPager->journalOff<szJ; ii++){
41679 u32 ii; /* Loop counter */
41685 for(ii=pSavepoint->iSubRec; rc==SQLITE_OK && ii<pPager->nSubRec; ii++){
41686 assert( offset==(i64)ii*(4+pPager->pageSize) );
42999 int ii;
43003 for(ii=szPageDflt; ii<=SQLITE_MAX_DEFAULT_PAGE_SIZE; ii=ii*2){
43004 if( iDc&(SQLITE_IOCAP_ATOMIC|(ii>>8)) ){
43005 szPageDflt = ii;
44074 int ii; /* Loop counter */
44103 for(ii=0; ii<nPage && rc==SQLITE_OK; ii++){
44104 Pgno pg = pg1+ii;
44133 for(ii=0; ii<nPage; ii++){
44134 PgHdr *pPage = pager_lookup(pPager, pg1+ii);
44740 int ii; /* Iterator variable */
44757 for(ii=nCurrent; ii<nSavepoint; ii++){
44758 aNew[ii].nOrig = pPager->dbSize;
44760 aNew[ii].iOffset = pPager->journalOff;
44762 aNew[ii].iOffset = JOURNAL_HDR_SZ(pPager);
44764 aNew[ii].iSubRec = pPager->nSubRec;
44765 aNew[ii].pInSavepoint = sqlite3BitvecCreate(pPager->dbSize);
44766 if( !aNew[ii].pInSavepoint ){
44770 sqlite3WalSavepoint(pPager->pWal, aNew[ii].aWalData);
44772 pPager->nSavepoint = ii+1;
44818 int ii; /* Iterator variable */
44826 for(ii=nNew; ii<pPager->nSavepoint; ii++){
44827 sqlite3BitvecDestroy(pPager->aSavepoint[ii].pInSavepoint);
54086 int ii;
54087 for(ii=0; ii<pCur->iPage; ii++){
54088 assert( pCur->aiIdx[ii]==pCur->apPage[ii]->nCell );
58384 int ii; /* Iterator variable */
58428 for(ii=0; (nPage<0 || ii<nPage) && p->iNext<=(Pgno)nSrcPage && !rc; ii++){
65596 int ii;
65659 u16 ii;
68028 int ii;
68131 for(u.as.ii=0; u.as.ii<db->nDb; u.as.ii++){
68132 sqlite3BtreeTripAllCursors(db->aDb[u.as.ii].pBt, SQLITE_ABORT);
68135 for(u.as.ii=0; u.as.ii<db->nDb; u.as.ii++){
68136 rc = sqlite3BtreeSavepoint(db->aDb[u.as.ii].pBt, u.as.p1, u.as.iSavepoint);
69094 u16 ii;
69119 for(u.bf.ii=0; u.bf.ii<u.bf.nField; u.bf.ii++){
69120 if( u.bf.aMx[u.bf.ii].flags & MEM_Null ){
93066 int ii;
93099 for(ii=0; ii<ArraySize(azEndings) && handle==0; ii++){
93100 char *zAltFile = sqlite3_mprintf("%s.%s", zFile, azEndings[ii]);
93854 int ii;
93855 for(ii=0; ii<db->nDb; ii++){
93856 sqlite3BtreeSecureDelete(db->aDb[ii].pBt, b);
93923 int ii;
93925 for(ii=2; ii<db->nDb; ii++){
93926 pPager = sqlite3BtreePager(db->aDb[ii].pBt);
93952 int ii; /* Loop counter */
93986 for(ii=db->nDb-1; ii>=0; ii--){
93987 if( db->aDb[ii].pBt && (ii==iDb || pId2->n==0) ){
93988 sqlite3VdbeUsesBtree(v, ii);
93989 sqlite3VdbeAddOp3(v, OP_JournalMode, ii, 1, eMode);
94141 int ii;
94145 for(ii=db->nDb-1; ii>=0; ii--){
94146 if( db->aDb[ii].pBt && (ii==iDb || pId2->n==0) ){
94147 sqlite3BtreeSetMmapLimit(db->aDb[ii].pBt, sz);
98982 int ii;
98983 for(ii=0; ii<p->pOrderBy->nExpr; ii++){
98984 if( p->pOrderBy->a[ii].iOrderByCol==0 ) return 0;
109041 int ii; /* Loop counter */
109121 for(ii=0; ii<pOrWc->nTerm; ii++){
109122 WhereTerm *pOrTerm = &pOrWc->a[ii];
109141 int iSet = ((ii==pOrWc->nTerm-1)?-1:ii);
109172 && (ii==0 || pLvl->plan.u.pIdx==pCov)
109444 int ii; /* Loop counter */
109533 for(ii=0; ii<pTabList->nSrc; ii++){
109534 createMask(pMaskSet, pTabList->a[ii].iCursor);
109539 for(ii=0; ii<pTabList->nSrc; ii++){
109540 Bitmask m = getMask(pMaskSet, pTabList->a[ii].iCursor);
109852 for(ii=0, pLevel=pWInfo->a; ii<nTabList; ii++, pLevel++){
109916 for(ii=0; ii<nTabList; ii++){
109917 pLevel = &pWInfo->a[ii];
109918 explainOneScan(pParse, pTabList, pLevel, ii, pLevel->iFrom, wctrlFlags);
109919 notReady = codeOneLoopStart(pWInfo, ii, wctrlFlags, notReady);
109930 for(ii=0; ii<nTabList; ii++){
109936 pLevel = &pWInfo->a[ii];
123607 int ii; /* Iterator variable for various purposes */
123626 for(ii=0; ii<nTC; ii++){
123627 if( aTC[ii].pRoot==pRoot ){
123628 nOvfl += aTC[ii].nOvfl;
123661 for(ii=0; ii<nToken && rc==SQLITE_OK; ii++){
123675 if( ii && pTC->nOvfl>=((nMinEst+(nLoad4/4)-1)/(nLoad4/4))*nDocSize ){
123688 if( ii<12 ) nLoad4 = nLoad4*4;
123690 if( ii==0 || pTC->pPhrase->nToken>1 ){
123705 if( ii==0 || nCount<nMinEst ) nMinEst = nCount;
123750 int ii;
123760 for(ii=0; rc==SQLITE_OK && ii<nOr; ii++){
123761 rc = fts3EvalSelectDeferred(pCsr, apOr[ii], aTC, nToken);
125439 int ii;
125440 for(ii=0; rc==SQLITE_OK; ii++){
125447 p = fts3ReallocOrFree(p, nSpace + ii*sizeof(Fts3PhraseToken));
125453 assert( nToken==ii );
125454 pToken = &((Fts3Phrase *)(&p[1]))->aToken[ii];
125463 nToken = ii+1;
125542 int ii;
125565 for(ii=0; ii<(int)(sizeof(aKeyword)/sizeof(struct Fts3Keyword)); ii++){
125566 const struct Fts3Keyword *pKey = &aKeyword[ii];
125640 for(ii=1; ii<nInput && zInput[ii]!='"'; ii++);
125641 *pnConsumed = (int)((zInput - z) + ii + 1);
125642 if( ii==nInput ){
125645 return getNextString(pParse, &zInput[1], ii-1, ppExpr);
125662 for(ii=0; ii<pParse->nCol; ii++){
125663 const char *zStr = pParse->azCol[ii];
125668 iCol = ii;
126326 int ii;
126364 for(ii=0; ii<nCol; ii++){
126365 azCol[ii] = (char *)sqlite3_value_text(argv[ii+2]);
130151 int ii;
130158 for(ii=0; rc==SQLITE_OK && ii<pMsr->nSegment; ii++){
130159 Fts3SegReader *pReader = pMsr->apSegment[ii];
136903 int ii;
136906 for(ii=0; ii<(pRtree->nDim*2); ii++){
136907 p += writeCoord(p, &pCell->aCoord[ii]);
137041 int ii;
137043 for(ii=0; ii<pRtree->nDim*2; ii++){
137044 nodeGetCoord(pRtree, pNode, iCell, ii, &pCell->aCoord[ii]);
137239 int ii;
137244 for(ii=0; bRes==0 && ii<pCursor->nConstraint; ii++){
137245 RtreeConstraint *p = &pCursor->aConstraint[ii];
137293 int ii;
137297 for(ii=0; ii<pCursor->nConstraint; ii++){
137298 RtreeConstraint *p = &pCursor->aConstraint[ii];
137344 int ii;
137371 for(ii=0; isEof && ii<NCELL(pChild); ii++){
137372 pCursor->iCell = ii;
137402 int ii;
137404 for(ii=0; ii<nCell; ii++){
137405 if( nodeGetRowid(pRtree, pNode, ii)==iRowid ){
137406 *piIndex = ii;
137590 int ii;
137621 for(ii=0; ii<argc; ii++){
137622 RtreeConstraint *p = &pCsr->aConstraint[ii];
137623 p->op = idxStr[ii*2];
137624 p->iCoord = idxStr[ii*2+1]-'a';
137630 rc = deserializeGeometry(argv[ii], p);
137636 p->rValue = sqlite3_value_int64(argv[ii]);
137638 p->rValue = sqlite3_value_double(argv[ii]);
137709 int ii;
137717 for(ii=0; ii<pIdxInfo->nConstraint && iIdx<(int)(sizeof(zIdxStr)-1); ii++){
137718 struct sqlite3_index_constraint *p = &pIdxInfo->aConstraint[ii];
137723 for(jj=0; jj<ii; jj++){
137728 pIdxInfo->aConstraintUsage[ii].argvIndex = 1;
137755 pIdxInfo->aConstraintUsage[ii].argvIndex = (iIdx/2);
137756 pIdxInfo->aConstraintUsage[ii].omit = 1;
137775 int ii;
137776 for(ii=0; ii<(pRtree->nDim*2); ii+=2){
137777 area = (area * (DCOORD(p->aCoord[ii+1]) - DCOORD(p->aCoord[ii])));
137788 int ii;
137789 for(ii=0; ii<(pRtree->nDim*2); ii+=2){
137790 margin += (DCOORD(p->aCoord[ii+1]) - DCOORD(p->aCoord[ii]));
137799 int ii;
137801 for(ii=0; ii<(pRtree->nDim*2); ii+=2){
137802 p1->aCoord[ii].f = MIN(p1->aCoord[ii].f, p2->aCoord[ii].f);
137803 p1->aCoord[ii+1].f = MAX(p1->aCoord[ii+1].f, p2->aCoord[ii+1].f);
137806 for(ii=0; ii<(pRtree->nDim*2); ii+=2){
137807 p1->aCoord[ii].i = MIN(p1->aCoord[ii].i, p2->aCoord[ii].i);
137808 p1->aCoord[ii+1].i = MAX(p1->aCoord[ii+1].i, p2->aCoord[ii+1].i);
137818 int ii;
137820 for(ii=0; ii<(pRtree->nDim*2); ii+=2){
137821 RtreeCoord *a1 = &p1->aCoord[ii];
137822 RtreeCoord *a2 = &p2->aCoord[ii];
137852 int ii;
137854 for(ii=0; ii<nCell; ii++){
137856 if( ii!=iExclude )
137867 x1 = MAX(DCOORD(p->aCoord[jj]), DCOORD(aCell[ii].aCoord[jj]));
137868 x2 = MIN(DCOORD(p->aCoord[jj+1]), DCOORD(aCell[ii].aCoord[jj+1]));
137913 int ii;
137917 for(ii=0; rc==SQLITE_OK && ii<(pRtree->iDepth-iHeight); ii++){
137935 if( ii==(pRtree->iDepth-1) ){
137963 if( ii==(pRtree->iDepth-1) ){
138064 int ii;
138065 for(ii=0; aiUsed[ii]; ii++);
138066 aiUsed[ii] = 1;
138067 return &aCell[ii];
138148 int ii;
138149 for(ii=0; ii<nCell; ii++){
138150 if( aiUsed[ii]==0 ){
138151 RtreeDValue left = cellGrowth(pRtree, pLeftBox, &aCell[ii]);
138152 RtreeDValue right = cellGrowth(pRtree, pLeftBox, &aCell[ii]);
138156 iSelect = ii;
138175 int ii;
138182 for(ii=0; ii<nCell; ii++){
138183 for(jj=ii+1; jj<nCell; jj++){
138185 RtreeDValue growth = cellGrowth(pRtree, &aCell[ii], &aCell[jj]);
138189 iLeftSeed = ii;
138355 int ii;
138370 for(ii=0; ii<pRtree->nDim; ii++){
138372 aaSorted[ii] = &((int *)&aaSorted[pRtree->nDim])[ii*nCell];
138374 aaSorted[ii][jj] = jj;
138376 SortByDimension(pRtree, aaSorted[ii], nCell, ii, aCell, aSpare);
138379 for(ii=0; ii<pRtree->nDim; ii++){
138397 memcpy(&left, &aCell[aaSorted[ii][0]], sizeof(RtreeCell));
138398 memcpy(&right, &aCell[aaSorted[ii][nCell-1]], sizeof(RtreeCell));
138401 cellUnion(pRtree, &left, &aCell[aaSorted[ii][kk]]);
138403 cellUnion(pRtree, &right, &aCell[aaSorted[ii][kk]]);
138420 if( ii==0 || margin<fBestMargin ){
138421 iBestDim = ii;
138429 for(ii=0; ii<nCell; ii++){
138430 RtreeNode *pTarget = (ii<iBestSplit)?pLeft:pRight;
138431 RtreeCell *pBbox = (ii<iBestSplit)?pBboxLeft:pBboxRight;
138432 RtreeCell *pCell = &aCell[aaSorted[iBestDim][ii]];
138748 int ii;
138752 for(ii=1; ii<nCell; ii++){
138754 nodeGetCell(pRtree, pNode, ii, &cell);
138758 rc = nodeParentIndex(pRtree, pNode, &ii);
138760 nodeOverwriteCell(pRtree, pParent, &box, ii);
138815 int ii;
138840 for(ii=0; ii<nCell; ii++){
138841 if( ii==(nCell-1) ){
138842 memcpy(&aCell[ii], pCell, sizeof(RtreeCell));
138844 nodeGetCell(pRtree, pNode, ii, &aCell[ii]);
138846 aOrder[ii] = ii;
138848 aCenterCoord[iDim] += DCOORD(aCell[ii].aCoord[iDim*2]);
138849 aCenterCoord[iDim] += DCOORD(aCell[ii].aCoord[iDim*2+1]);
138856 for(ii=0; ii<nCell; ii++){
138857 aDistance[ii] = 0.0;
138859 RtreeDValue coord = (DCOORD(aCell[ii].aCoord[iDim*2+1]) -
138860 DCOORD(aCell[ii].aCoord[iDim*2]));
138861 aDistance[ii] += (coord-aCenterCoord[iDim])*(coord-aCenterCoord[iDim]);
138868 for(ii=0; rc==SQLITE_OK && ii<(nCell-(RTREE_MINCELLS(pRtree)+1)); ii++){
138869 RtreeCell *p = &aCell[aOrder[ii]];
138882 for(; rc==SQLITE_OK && ii<nCell; ii++){
138887 RtreeCell *p = &aCell[aOrder[ii]];
138947 int ii;
138951 for(ii=0; rc==SQLITE_OK && ii<nCell; ii++){
138954 nodeGetCell(pRtree, pNode, ii, &cell);
139128 int ii;
139134 for(ii=0; ii<(pRtree->nDim*2); ii+=2){
139135 cell.aCoord[ii].f = rtreeValueDown(azData[ii+3]);
139136 cell.aCoord[ii+1].f = rtreeValueUp(azData[ii+4]);
139137 if( cell.aCoord[ii].f>cell.aCoord[ii+1].f ){
139145 for(ii=0; ii<(pRtree->nDim*2); ii+=2){
139146 cell.aCoord[ii].i = sqlite3_value_int(azData[ii+3]);
139147 cell.aCoord[ii+1].i = sqlite3_value_int(azData[ii+4]);
139148 if( cell.aCoord[ii].i>cell.aCoord[ii+1].i ){
139480 int ii;
139481 for(ii=4; zSql && ii<argc; ii++){
139483 zSql = sqlite3_mprintf("%s, %s", zTmp, argv[ii]);
139529 int ii;
139538 for(ii=0; ii<NCELL(&node); ii++){
139544 nodeGetCell(&tree, &node, ii, &cell);