Lines Matching refs:i1

86655   int i1;
86664 i1 = (iOut - pMerger->nTree/2) * 2;
86665 i2 = i1 + 1;
86667 i1 = pMerger->aTree[iOut*2];
86671 p1 = &pMerger->aReadr[i1];
86677 iRes = i1;
86687 iRes = i1;
143899 sqlite3_int64 i1 = 0; /* Last position from pp1 */
143915 fts3GetDeltaVarint(&p1, &i1);
143918 fts3PutDeltaVarint(&p, &iPrev, (i1<i2) ? i1 : i2);
143920 if( i1==i2 ){
143921 fts3ReadNextPos(&p1, &i1);
143923 }else if( i1<i2 ){
143924 fts3ReadNextPos(&p1, &i1);
143928 }while( i1!=POSITION_LIST_END || i2!=POSITION_LIST_END );
144213 #define DOCID_CMP(i1, i2) ((bDescDoclist?-1:1) * (i1-i2))
144235 sqlite3_int64 i1 = 0;
144282 fts3GetDeltaVarint3(&p1, pEnd1, 0, &i1);
144285 sqlite3_int64 iDiff = DOCID_CMP(i1, i2);
144288 fts3PutDeltaVarint3(&p, bDescDoclist, &iPrev, &bFirstOut, i1);
144290 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
144293 fts3PutDeltaVarint3(&p, bDescDoclist, &iPrev, &bFirstOut, i1);
144295 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
144327 sqlite3_int64 i1 = 0;
144348 fts3GetDeltaVarint3(&p1, pEnd1, 0, &i1);
144352 sqlite3_int64 iDiff = DOCID_CMP(i1, i2);
144358 fts3PutDeltaVarint3(&p, bDescDoclist, &iPrev, &bFirstOut, i1);
144364 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
144368 fts3GetDeltaVarint3(&p1, pEnd1, bDescDoclist, &i1);
187467 int i1 = p1 - pIter->aSeg;
187474 assert( pRes->iFirst==i1 );
187489 assert( pRes->iFirst==i1 );
187549 int i1; /* Index of left-hand Fts5SegIter */
187560 i1 = (iOut - pIter->nSeg/2) * 2;
187561 i2 = i1 + 1;
187563 i1 = pIter->aFirst[iOut*2].iFirst;
187566 p1 = &pIter->aSeg[i1];
187573 iRes = i1;
187577 assert( i2>i1 );
187588 iRes = i1;
189794 int i1 = 0;
189805 fts5NextRowid(p1, &i1, &iRowid1);
189807 while( i1>=0 || i2>=0 ){
189808 if( i1>=0 && (i2<0 || iRowid1<iRowid2) ){
189812 fts5NextRowid(p1, &i1, &iRowid1);
189817 if( i1>=0 && iRowid1==iRowid2 ){
189818 fts5NextRowid(p1, &i1, &iRowid1);
189843 Fts5DoclistIter i1;
189849 fts5DoclistIterInit(p1, &i1);
189853 if( i1.iRowid<i2.iRowid ){
189855 fts5MergeAppendDocid(&out, iLastRowid, i1.iRowid);
189856 fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.nPoslist+i1.nSize);
189857 fts5DoclistIterNext(&i1);
189858 if( i1.aPoslist==0 ) break;
189860 else if( i2.iRowid!=i1.iRowid ){
189873 u8 *a1 = &i1.aPoslist[i1.nSize];
189882 sqlite3Fts5BufferSize(&p->rc, &tmp, i1.nPoslist + i2.nPoslist);
189885 sqlite3Fts5PoslistNext64(a1, i1.nPoslist, &iOff1, &iPos1);
189891 sqlite3Fts5PoslistNext64(a1, i1.nPoslist, &iOff1, &iPos1);
189903 sqlite3Fts5PoslistNext64(a1, i1.nPoslist, &iOff1, &iPos1);
189918 fts5BufferSafeAppendBlob(&tmp, &a1[iOff1], i1.nPoslist-iOff1);
189928 fts5DoclistIterNext(&i1);
189930 if( i1.aPoslist==0 || i2.aPoslist==0 ) break;
189934 if( i1.aPoslist ){
189935 fts5MergeAppendDocid(&out, iLastRowid, i1.iRowid);
189936 fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.aEof - i1.aPoslist);
193159 int i1 = (iPhrase==0 ? 0 : pSorter->aIdx[iPhrase-1]);
193160 *pn = pSorter->aIdx[iPhrase] - i1;
193161 *pa = &pSorter->aPoslist[i1];
193493 int i1 = (iPhrase==0 ? 0 : pSorter->aIdx[iPhrase-1]);
193494 n = pSorter->aIdx[iPhrase] - i1;
193495 pIter->a = &pSorter->aPoslist[i1];