Lines Matching refs:i1
93750 int i1;
93759 i1 = (iOut - pMerger->nTree/2) * 2;
93760 i2 = i1 + 1;
93762 i1 = pMerger->aTree[iOut*2];
93766 p1 = &pMerger->aReadr[i1];
93772 iRes = i1;
93782 iRes = i1;
103960 int i1 = sqlite3SchemaToIndex(db, sParse.pNewTrigger->pTabSchema);
103962 if( i1==i2 ) sqlite3_result_int(context, 1);
162434 sqlite3_int64 i1 = 0; /* Last position from pp1 */
162450 fts3GetDeltaVarint(&p1, &i1);
162453 fts3PutDeltaVarint(&p, &iPrev, (i1<i2) ? i1 : i2);
162455 if( i1==i2 ){
162456 fts3ReadNextPos(&p1, &i1);
162458 }else if( i1<i2 ){
162459 fts3ReadNextPos(&p1, &i1);
162463 }while( i1!=POSITION_LIST_END || i2!=POSITION_LIST_END );
162748 #define DOCID_CMP(i1, i2) ((bDescDoclist?-1:1) * (i1-i2))
162771 sqlite3_int64 i1 = 0;
162818 fts3GetDeltaVarint3(&p1, pEnd1, 0, &i1);
162821 sqlite3_int64 iDiff = DOCID_CMP(i1, i2);
162824 fts3PutDeltaVarint3(&p, bDescDoclist, &iPrev, &bFirstOut, i1);
162827 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
162830 fts3PutDeltaVarint3(&p, bDescDoclist, &iPrev, &bFirstOut, i1);
162832 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
162870 sqlite3_int64 i1 = 0;
162891 fts3GetDeltaVarint3(&p1, pEnd1, 0, &i1);
162895 sqlite3_int64 iDiff = DOCID_CMP(i1, i2);
162901 fts3PutDeltaVarint3(&p, bDescDoclist, &iPrev, &bFirstOut, i1);
162907 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
162911 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
211417 int i1 = p1 - pIter->aSeg;
211424 assert( pRes->iFirst==i1 );
211439 assert( pRes->iFirst==i1 );
211499 int i1; /* Index of left-hand Fts5SegIter */
211510 i1 = (iOut - pIter->nSeg/2) * 2;
211511 i2 = i1 + 1;
211513 i1 = pIter->aFirst[iOut*2].iFirst;
211516 p1 = &pIter->aSeg[i1];
211523 iRes = i1;
211527 assert_nc( i2>i1 );
211538 iRes = i1;
213778 int i1 = 0;
213789 fts5NextRowid(p1, &i1, &iRowid1);
213791 while( i1>=0 || i2>=0 ){
213792 if( i1>=0 && (i2<0 || iRowid1<iRowid2) ){
213796 fts5NextRowid(p1, &i1, &iRowid1);
213801 if( i1>=0 && iRowid1==iRowid2 ){
213802 fts5NextRowid(p1, &i1, &iRowid1);
213827 Fts5DoclistIter i1;
213839 fts5DoclistIterInit(p1, &i1);
213843 if( i1.iRowid<i2.iRowid ){
213845 fts5MergeAppendDocid(&out, iLastRowid, i1.iRowid);
213846 fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.nPoslist+i1.nSize);
213847 fts5DoclistIterNext(&i1);
213848 if( i1.aPoslist==0 ) break;
213850 else if( i2.iRowid!=i1.iRowid ){
213863 u8 *a1 = &i1.aPoslist[i1.nSize];
213874 sqlite3Fts5BufferSize(&p->rc, &tmp, i1.nPoslist + i2.nPoslist);
213877 sqlite3Fts5PoslistNext64(a1, i1.nPoslist, &iOff1, &iPos1);
213883 sqlite3Fts5PoslistNext64(a1, i1.nPoslist, &iOff1, &iPos1);
213895 sqlite3Fts5PoslistNext64(a1, i1.nPoslist, &iOff1, &iPos1);
213911 nCopy = i1.nPoslist - iOff1;
213925 fts5DoclistIterNext(&i1);
213928 if( i1.aPoslist==0 || i2.aPoslist==0 ) break;
213932 if( i1.aPoslist ){
213933 fts5MergeAppendDocid(&out, iLastRowid, i1.iRowid);
213934 fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.aEof - i1.aPoslist);
217218 int i1 = (iPhrase==0 ? 0 : pSorter->aIdx[iPhrase-1]);
217219 *pn = pSorter->aIdx[iPhrase] - i1;
217220 *pa = &pSorter->aPoslist[i1];
217557 int i1 = (iPhrase==0 ? 0 : pSorter->aIdx[iPhrase-1]);
217558 n = pSorter->aIdx[iPhrase] - i1;
217559 pIter->a = &pSorter->aPoslist[i1];