Lines Matching refs:iVal

9451   int iVal,                       /* Column number */
9484 int iVal, /* Column number */
9511 int iVal, /* Column number */
29120 int iVal /* Value to associate with zName */
29138 pIn[i] = iVal;
29153 SQLITE_PRIVATE const char *sqlite3VListNumToName(VList *pIn, int iVal){
29159 if( pIn[i]==iVal ) return (char*)&pIn[i+2];
70703 int iVal;
70749 pRec->nField = p->iVal+1;
70750 return &pRec->aMem[p->iVal];
71168 int iVal, /* Array element to populate */
71185 u8 aff = sqlite3IndexColumnAffinity(pParse->db, pIdx, iVal+i);
71186 alloc.iVal = iVal+i;
76375 SQLITE_API void sqlite3_result_int(sqlite3_context *pCtx, int iVal){
76377 sqlite3VdbeMemSetInt64(pCtx->pOut, (i64)iVal);
76379 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
76381 sqlite3VdbeMemSetInt64(pCtx->pOut, iVal);
87380 static void vdbePmaWriteVarint(PmaWriter *p, u64 iVal){
87383 nByte = sqlite3PutVarint(aByte, iVal);
97572 u64 iVal = (p->nRow + nDistinct - 1) / nDistinct;
97573 sqlite3_snprintf(24, z, " %llu", iVal);
105431 i64 iVal = sqlite3_value_int64(argv[0]);
105432 if( iVal<0 ){
105433 if( iVal==SMALLEST_INT64 ){
105440 iVal = -iVal;
105442 sqlite3_result_int64(context, iVal);
145695 sqlite3_int64 iVal;
145696 *pp += sqlite3Fts3GetVarint(*pp, &iVal);
145697 *pVal += iVal;
145714 sqlite3_int64 iVal;
145724 sqlite3Fts3GetVarint(p, &iVal);
145725 *pVal = iVal;
147215 sqlite3_int64 iVal /* Write this value to the list */
147217 assert( iVal-*piPrev > 0 || (*piPrev==0 && iVal==0) );
147218 *pp += sqlite3Fts3PutVarint(*pp, iVal-*piPrev);
147219 *piPrev = iVal;
147648 sqlite3_int64 iVal;
147649 *pp += sqlite3Fts3GetVarint(*pp, &iVal);
147651 *pVal -= iVal;
147653 *pVal += iVal;
147678 sqlite3_int64 iVal /* Write this value to the list */
147682 iWrite = iVal - *piPrev;
147684 iWrite = *piPrev - iVal;
147689 *piPrev = iVal;
158377 i64 iVal = 0;
158379 iVal = iVal*10 + (zText[i] - '0');
158381 *piEndBlock = iVal;
158383 iVal = 0;
158389 iVal = iVal*10 + (zText[i] - '0');
158391 *pnByte = (iVal * (i64)iMul);
160456 i64 iVal = 0;
160457 pCsr += sqlite3Fts3GetVarint(pCsr, &iVal);
160459 if( iVal==0 || iVal==1 ){
160462 if( iVal ){
160465 pCsr += sqlite3Fts3GetVarint(pCsr, &iVal);
160466 iDocid += iVal;
160469 iPos += (iVal - 2);
161259 int iVal;
161260 *pp += fts3GetVarint32(*pp, &iVal);
161261 *piPos += (iVal-2);
162261 u32 iVal;
162264 iVal = (u32)(((u32)(nToken&0xffffffff)+nDoc/2)/nDoc);
162265 pInfo->aMatchinfo[iCol] = iVal;
171513 int iVal = sqlite3_column_int(p->objiter.pSelect, iCol);
171514 switch( iVal ){
172692 static void rbuPutU32(u8 *aBuf, u32 iVal){
172693 aBuf[0] = (iVal >> 24) & 0xFF;
172694 aBuf[1] = (iVal >> 16) & 0xFF;
172695 aBuf[2] = (iVal >> 8) & 0xFF;
172696 aBuf[3] = (iVal >> 0) & 0xFF;
172699 static void rbuPutU16(u8 *aBuf, u16 iVal){
172700 aBuf[0] = (iVal >> 8) & 0xFF;
172701 aBuf[1] = (iVal >> 0) & 0xFF;
174437 static int sessionVarintPut(u8 *aBuf, int iVal){
174438 return putVarint32(aBuf, iVal);
174444 static int sessionVarintLen(int iVal){
174445 return sqlite3VarintLen(iVal);
174652 i64 iVal;
174654 iVal = sqlite3_value_int64(pVal);
174657 assert( sizeof(iVal)==8 && sizeof(rVal)==8 );
174658 memcpy(&iVal, &rVal, 8);
174660 h = sessionHashAppendI64(h, iVal);
174994 i64 iVal = sessionGetI64(a);
174997 if( sqlite3_value_int64(pVal)!=iVal ) return 0;
175000 assert( sizeof(iVal)==8 && sizeof(rVal)==8 );
175001 memcpy(&rVal, &iVal, 8);
175422 static int sessionPreupdateOld(void *pCtx, int iVal, sqlite3_value **ppVal){
175423 return sqlite3_preupdate_old((sqlite3*)pCtx, iVal, ppVal);
175425 static int sessionPreupdateNew(void *pCtx, int iVal, sqlite3_value **ppVal){
175426 return sqlite3_preupdate_new((sqlite3*)pCtx, iVal, ppVal);
175458 static int sessionDiffOld(void *pCtx, int iVal, sqlite3_value **ppVal){
175460 *ppVal = sqlite3_column_value(p->pStmt, iVal+p->nOldOff);
175463 static int sessionDiffNew(void *pCtx, int iVal, sqlite3_value **ppVal){
175465 *ppVal = sqlite3_column_value(p->pStmt, iVal);
176004 int iVal, /* Value to write the string rep. of */
176008 sqlite3_snprintf(sizeof(aBuf)-1, aBuf, "%d", iVal);
176140 sqlite3_int64 iVal = sessionGetI64(&pCsr[1]);
176142 if( iVal==sqlite3_column_int64(pStmt, i) ) break;
176145 memcpy(&dVal, &iVal, 8);
176326 i64 iVal = sessionGetI64(a);
176327 rc = sqlite3_bind_int64(pSelect, i+1, iVal);
176336 i64 iVal = sessionGetI64(a);
176337 memcpy(&rVal, &iVal, 8);
177138 int iVal, /* Index of old.* value to retrieve */
177144 if( iVal<0 || iVal>=pIter->nCol ){
177147 *ppValue = pIter->apValue[iVal];
177166 int iVal, /* Index of new.* value to retrieve */
177172 if( iVal<0 || iVal>=pIter->nCol ){
177175 *ppValue = pIter->apValue[pIter->nCol+iVal];
177184 #define sessionChangesetNew(pIter, iVal) (pIter)->apValue[(pIter)->nCol+(iVal)]
177185 #define sessionChangesetOld(pIter, iVal) (pIter)->apValue[(iVal)]
177200 int iVal, /* Index of conflict record value to fetch */
177206 if( iVal<0 || iVal>=pIter->nCol ){
177209 *ppValue = sqlite3_column_value(pIter->pConflict, iVal);
182275 static int sqlite3Fts5GetVarintLen(u32 iVal);
184606 static void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){
184608 pBuf->n += sqlite3Fts5PutVarint(&pBuf->p[pBuf->n], iVal);
184611 static void sqlite3Fts5Put32(u8 *aBuf, int iVal){
184612 aBuf[0] = (iVal>>24) & 0x00FF;
184613 aBuf[1] = (iVal>>16) & 0x00FF;
184614 aBuf[2] = (iVal>> 8) & 0x00FF;
184615 aBuf[3] = (iVal>> 0) & 0x00FF;
184741 int iVal;
184742 fts5FastGetVarint32(a, i, iVal);
184743 if( iVal==1 ){
184744 fts5FastGetVarint32(a, i, iVal);
184745 iOff = ((i64)iVal) << 32;
184746 fts5FastGetVarint32(a, i, iVal);
184748 *piOff = iOff + (iVal-2);
185169 int iVal = -1;
185173 if( iVal>=0 ) return SQLITE_ERROR;
185174 iVal = aEnum[i].eVal;
185178 *peVal = iVal;
185179 return iVal<0 ? SQLITE_ERROR : SQLITE_OK;
189727 static void fts5PutU16(u8 *aOut, u16 iVal){
189728 aOut[0] = (iVal>>8);
189729 aOut[1] = (iVal&0xFF);
190268 #define fts5BufferSafeAppendVarint(pBuf, iVal) { \
190269 (pBuf)->n += sqlite3Fts5PutVarint(&(pBuf)->p[(pBuf)->n], (iVal)); \
190454 i64 iVal;
190456 iOff += fts5GetVarint(&pData->p[iOff], (u64*)&iVal);
190457 pLvl->iRowid += iVal;
190549 i64 iVal;
190563 fts5GetVarint(&a[iOff], (u64*)&iVal);
190564 pLvl->iRowid -= iVal;
192145 int iVal;
192146 i += fts5GetVarint32(&pChunk[i], iVal);
192147 iVal += pCtx->iRead - 2;
192148 pCtx->iRead = iVal;
192149 if( fts5IndexColsetTest(pCtx->pColset, iVal) ){
192150 fts5BufferSafeAppendVarint(pCtx->pBuf, iVal + 2 - pCtx->iWrite);
192151 pCtx->iWrite = iVal;
192958 i64 iVal;
192994 iVal = iRowid - pDlidx->iPrev;
193000 iVal = iRowid;
193003 sqlite3Fts5BufferAppendVarint(&p->rc, &pDlidx->buf, iVal);
194006 u64 iVal;
194007 *piOff = i + sqlite3Fts5GetVarint(&pBuf->p[i], &iVal);
194008 *piRowid += iVal;
195303 u64 iVal;
195304 i += sqlite3Fts5GetVarint(&pBlob[i], &iVal);
195305 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "%s%d", zSpace, (int)iVal);
195320 int iVal;
195321 iOff += fts5GetVarint32(&a[iOff], iVal);
195322 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %d", iVal);
195383 u64 iVal;
195384 i += sqlite3Fts5GetVarint(&pData[i], &iVal);
195385 iRowid += iVal;
196398 int iVal;
196399 a += fts5GetVarint32(a, iVal);
196400 iOff += iVal;
196776 int iVal = 0; /* Counter for apVal[] */
196809 if( BitFlagTest(idxNum, FTS5_BI_MATCH) ) pMatch = apVal[iVal++];
196810 if( BitFlagTest(idxNum, FTS5_BI_RANK) ) pRank = apVal[iVal++];
196811 if( BitFlagTest(idxNum, FTS5_BI_ROWID_EQ) ) pRowidEq = apVal[iVal++];
196812 if( BitFlagTest(idxNum, FTS5_BI_ROWID_LE) ) pRowidLe = apVal[iVal++];
196813 if( BitFlagTest(idxNum, FTS5_BI_ROWID_GE) ) pRowidGe = apVal[iVal++];
196814 assert( iVal==nVal );
197646 int iVal;
197647 pIter->a += fts5GetVarint32(pIter->a, iVal);
197648 if( iVal==1 ){
197649 pIter->a += fts5GetVarint32(pIter->a, iVal);
197650 *piCol = iVal;
197652 pIter->a += fts5GetVarint32(pIter->a, iVal);
197654 *piOff += (iVal-2);
199497 int iVal
199506 sqlite3_bind_int(pReplace, 2, iVal);
201459 static int sqlite3Fts5GetVarintLen(u32 iVal){
201461 if( iVal<(1 << 7 ) ) return 1;
201463 assert( iVal>=(1 << 7) );
201464 if( iVal<(1 << 14) ) return 2;
201465 if( iVal<(1 << 21) ) return 3;
201466 if( iVal<(1 << 28) ) return 4;
201981 int iVal = 0;
201993 if( idxNum & FTS5_VOCAB_TERM_EQ ) pEq = apVal[iVal++];
201994 if( idxNum & FTS5_VOCAB_TERM_GE ) pGe = apVal[iVal++];
201995 if( idxNum & FTS5_VOCAB_TERM_LE ) pLe = apVal[iVal++];
202046 i64 iVal = 0;
202060 iVal = pCsr->aDoc[pCsr->iCol];
202062 iVal = pCsr->aCnt[pCsr->iCol];
202067 iVal = pCsr->aDoc[0];
202069 iVal = pCsr->aCnt[0];
202073 if( iVal>0 ) sqlite3_result_int64(pCtx, iVal);