Home
last modified time | relevance | path

Searched refs:i64 (Results 1 – 25 of 87) sorted by relevance

1234

/sqlite-3.40.0/ext/fts5/
H A Dfts5Int.h30 typedef sqlite3_int64 i64; typedef
59 # define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
60 # define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
327 i64 iPrev;
330 void sqlite3Fts5PoslistSafeAppend(Fts5Buffer*, i64*, i64);
365 i64 iRowid;
397 i64 iRowid,
499 int sqlite3Fts5IndexGetAverages(Fts5Index *p, i64 *pnRow, i64 *anSize);
728 int sqlite3Fts5ExprNext(Fts5Expr*, i64 iMax);
730 i64 sqlite3Fts5ExprRowid(Fts5Expr*);
[all …]
H A Dfts5_storage.c295 p->aTotalSize = (i64*)&p[1]; in sqlite3Fts5StorageOpen()
394 i64 iDel, in fts5StorageDeleteFromIndex()
435 p->aTotalSize[iCol-1] -= (i64)ctx.szCol; in fts5StorageDeleteFromIndex()
463 i64 iRowid, /* id value */ in fts5StorageInsertDocsize()
701 i64 *piRowid in sqlite3Fts5StorageContentInsert()
736 i64 iRowid in sqlite3Fts5StorageIndexInsert()
763 p->aTotalSize[ctx.iCol] += (i64)ctx.szCol; in sqlite3Fts5StorageIndexInsert()
806 i64 iRowid;
899 aTotalSize = (i64*)sqlite3_malloc64(pConfig->nCol*(sizeof(int)+sizeof(i64))); in sqlite3Fts5StorageIntegrity()
970 i64 nRow = 0; in sqlite3Fts5StorageIntegrity()
[all …]
H A Dfts5_buffer.c42 void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){ in sqlite3Fts5BufferAppendVarint()
169 i64 *piOff /* IN/OUT: Current offset */ in sqlite3Fts5PoslistNext64()
177 i64 iOff = *piOff; in sqlite3Fts5PoslistNext64()
186 iOff = ((i64)iVal) << 32; in sqlite3Fts5PoslistNext64()
196 *piOff = (iOff & (i64)0x7FFFFFFF<<32)+((iOff + (iVal-2)) & 0x7FFFFFFF); in sqlite3Fts5PoslistNext64()
235 i64 *piPrev, in sqlite3Fts5PoslistSafeAppend()
236 i64 iPos in sqlite3Fts5PoslistSafeAppend()
239 static const i64 colmask = ((i64)(0x7FFFFFFF)) << 32; in sqlite3Fts5PoslistSafeAppend()
253 i64 iPos in sqlite3Fts5PoslistWriterAppend()
H A Dfts5_expr.c459 i64 iRowid, in fts5ExprSynonymList()
719 i64 iMin; in fts5ExprNearIsMatch()
720 i64 iMax; in fts5ExprNearIsMatch()
956 i64 iLhs, in fts5RowidCmp()
957 i64 iRhs in fts5RowidCmp()
1103 i64 iFrom in fts5ExprNodeNext_STRING()
1196 i64 iFrom in fts5ExprNodeNext_TERM()
1239 i64 iFrom in fts5ExprNodeNext_OR()
1323 i64 iFrom in fts5ExprNodeNext_AND()
1366 i64 iFrom in fts5ExprNodeNext_NOT()
[all …]
H A Dfts5_index.c312 i64 iRowid;
1349 i64 iVal; in fts5DlidxLvlNext()
1444 i64 iVal; in fts5DlidxLvlPrev()
1980 i64 iDelta; in fts5SegIterNext_None()
3616 i64 iMatch in fts5MultiIterNextFrom()
3865 i64 iRowid; in fts5DlidxExtractFirstRowid()
3881 i64 iRowid in fts5WriteDlidxAppend()
3887 i64 iVal; in fts5WriteDlidxAppend()
3941 i64 iRowid; in fts5WriteFlushLeaf()
4068 i64 iRowid in fts5WriteAppendRowid()
[all …]
H A Dfts5_vocab.c70 i64 *aCnt;
71 i64 *aDoc;
74 i64 rowid; /* This table's current rowid value */
78 i64 iInstPos;
356 i64 iId = sqlite3_column_int64(pStmt, 0); in fts5VocabOpenMethod()
377 i64 nByte = pFts5->pConfig->nCol * sizeof(i64)*2 + sizeof(Fts5VocabCursor); in fts5VocabOpenMethod()
384 pCsr->aCnt = (i64*)&pCsr[1]; in fts5VocabOpenMethod()
445 i64 *pp = &pCsr->iInstPos; in fts5VocabInstanceNext()
512 memset(pCsr->aCnt, 0, nCol * sizeof(i64)); in fts5VocabNextMethod()
513 memset(pCsr->aDoc, 0, nCol * sizeof(i64)); in fts5VocabNextMethod()
[all …]
/sqlite-3.40.0/tool/
H A Dshowwal.c96 i64 v = 0; in decodeVarint()
207 i64 iStart; in print_frame()
227 i64 iStart; in print_oneline_frame()
293 i64 i, x, v; in describeContent()
352 static i64 localPayload(i64 nPayload, char cType){ in localPayload()
353 i64 maxLocal; in localPayload()
355 i64 surplus; in localPayload()
356 i64 nLocal; in localPayload()
394 i64 rowid; in describeCell()
395 i64 nLocal; in describeCell()
[all …]
H A Dshowdb.c44 i64 v = 0; in decodeVarint()
166 i64 res = 0; in fileGetsize()
241 i64 iStart; in print_page()
378 static i64 localPayload(i64 nPayload, char cType){ in localPayload()
382 i64 nLocal; in localPayload()
421 i64 rowid; in describeCell()
497 i64 k; in decodeCell()
499 i64 rowid; in decodeCell()
500 i64 nHdr; in decodeCell()
501 i64 iType; in decodeCell()
[all …]
H A Dshowstat4.c14 typedef sqlite3_int64 i64; /* 64-bit signed integer type */ typedef
21 static int decodeVarint(const unsigned char *z, i64 *pVal){ in decodeVarint()
22 i64 v = 0; in decodeVarint()
42 i64 iVal; in main()
90 i64 v; in main()
/sqlite-3.40.0/src/
H A DvdbeInt.h95 i64 seqCount; /* Sequence counter */
174 i64 *anExec; /* Event counters from parent frame */
179 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
190 i64 nChange; /* Statement changes (Vdbe.nChange) */
191 i64 nDbChange; /* Value of db->nChange */
434 i64 nFkConstraint; /* Number of imm. FK constraints this VM */
569 int sqlite3VdbeIdxRowid(sqlite3*, BtCursor*, i64*);
589 void sqlite3VdbeMemSetInt64(Mem*, i64);
609 int sqlite3IntFloatCompare(i64,double);
610 i64 sqlite3VdbeIntValue(const Mem*);
[all …]
H A Dbackup.c236 const i64 iEnd = (i64)iSrcPg*(i64)nSrcPgsz; in backupOnePage()
238 i64 iOff; in backupOnePage()
257 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){ in backupOnePage()
295 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){ in backupTruncateFile()
296 i64 iCurrent; in backupTruncateFile()
473 const i64 iSize = (i64)pgszSrc * (i64)nSrcPage; in sqlite3_backup_step()
477 i64 iOff; in sqlite3_backup_step()
478 i64 iEnd; in sqlite3_backup_step()
482 || (i64)nDestTruncate*(i64)pgszDest >= iSize || ( in sqlite3_backup_step()
731 i64 nByte = sqlite3BtreeGetPageSize(pFrom)*(i64)sqlite3BtreeLastPage(pFrom); in sqlite3BtreeCopyFile()
H A Dos.h177 int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
178 int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
179 int sqlite3OsTruncate(sqlite3_file*, i64 size);
181 int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
196 int sqlite3OsFetch(sqlite3_file *id, i64, int, void **);
197 int sqlite3OsUnfetch(sqlite3_file *, i64, void *);
H A Dbtree.h126 int sqlite3BtreeClearTable(Btree*, int, i64*);
252 i64 intKey,
321 i64 sqlite3BtreeIntegerKey(BtCursor*);
325 i64 sqlite3BtreeOffset(BtCursor*);
334 i64 sqlite3BtreeRowCountEst(BtCursor*);
358 int sqlite3BtreeCount(sqlite3*, BtCursor*, i64*);
369 int sqlite3BtreeTransferRow(BtCursor*, BtCursor*, i64);
H A Dvdbesort.c1071 i64 t; in vdbeSorterWorkDebug()
1077 i64 t = 0; in vdbeSorterRewindDebug()
1086 i64 t; in vdbeSorterPopulateDebug()
1097 i64 t; in vdbeSorterBlockDebug()
1318 i64 max = SQLITE_MAX_MMAP_SIZE; in vdbeSorterOpenTempFile()
1882 i64 iStart = pIncr->iStartOff; in vdbeIncrPopulate()
2315 i64 iOff = *piOffset; in vdbeMergeEngineLevel0()
2323 i64 nDummy = 0; in vdbeMergeEngineLevel0()
2349 i64 nDiv = SORTER_MAX_MERGE_COUNT; in vdbeSorterTreeDepth()
2350 while( nDiv < (i64)nPMA ){ in vdbeSorterTreeDepth()
[all …]
H A Dos.c88 int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){ in sqlite3OsRead()
92 int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){ in sqlite3OsWrite()
96 int sqlite3OsTruncate(sqlite3_file *id, i64 size){ in sqlite3OsTruncate()
103 int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){ in sqlite3OsFileSize()
193 int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){ in sqlite3OsFetch()
197 int sqlite3OsUnfetch(sqlite3_file *id, i64 iOff, void *p){ in sqlite3OsUnfetch()
202 int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){ in sqlite3OsFetch()
206 int sqlite3OsUnfetch(sqlite3_file *id, i64 iOff, void *p){ in sqlite3OsUnfetch()
H A Ddate.c405 #define INT_464269060799999 ((((i64)0x1a640)<<32)|0x1072fdff)
577 if( p->iJD<2108667600*(i64)100000 /* 1970-01-01 */ in toLocaltime()
578 || p->iJD>2130141456*(i64)100000 /* 2038-01-18 */ in toLocaltime()
591 t = (time_t)(x.iJD/1000 - 21086676*(i64)10000); in toLocaltime()
594 t = (time_t)(p->iJD/1000 - 21086676*(i64)10000); in toLocaltime()
684 }else if( p->s>=-21086676*(i64)10000 /* -4713-11-24 12:00:00 */ in parseModifier()
685 && p->s<=(25340230*(i64)10000)+799 /* 9999-12-31 23:59:59 */ in parseModifier()
749 i64 iOrigJD; /* Original localtime */ in parseModifier()
750 i64 iGuess; /* Guess at the corresponding utc time */ in parseModifier()
1007 sqlite3_result_int64(context, x.iJD/1000 - 21086676*(i64)10000); in unixepochFunc()
[all …]
/sqlite-3.40.0/ext/lsm1/
H A DlsmInt.h108 typedef lsm_i64 i64; typedef
113 typedef i64 LsmPgno;
483 i64 iLsmId;
607 i64 lsmCheckpointId(u32 *, int);
609 i64 lsmCheckpointLogOffset(u32 *);
617 int lsmCheckpointSynced(lsm_db *pDb, i64 *piId, i64 *piLog, u32 *pnWrite);
759 int lsmFsTruncateLog(FileSystem *pFS, i64 nByte);
760 int lsmFsTruncateDb(FileSystem *pFS, i64 nByte);
853 int lsmVarintPut64(u8 *aData, i64 iVal);
854 int lsmVarintGet64(const u8 *aData, i64 *piVal);
[all …]
H A Dlsm_ckpt.c292 static i64 ckptRead64(u32 *a){ in ckptRead64()
293 return (((i64)a[0]) << 32) + (i64)a[1]; in ckptRead64()
296 static i64 ckptGobble64(u32 *a, int *piIn){ in ckptGobble64()
371 i64 iOff = pDb->treehdr.iOldLog; in ckptExportLog()
700 static i64 ckptLoadId(MetaPage *pPg){ in ckptLoadId()
701 i64 ret = 0; in ckptLoadId()
1111 int lsmCheckpointSynced(lsm_db *pDb, i64 *piId, i64 *piLog, u32 *pnWrite){ in lsmCheckpointSynced()
1159 i64 iId; in lsmCheckpointId()
1165 iId = ((i64)aCkpt[CKPT_HDR_ID_MSW] << 32) + (i64)aCkpt[CKPT_HDR_ID_LSW]; in lsmCheckpointId()
1182 i64 lsmCheckpointLogOffset(u32 *aCkpt){ in lsmCheckpointLogOffset()
[all …]
H A Dlsm_file.c418 i64 szMin, in lsmEnvRemap()
420 i64 *pszMap in lsmEnvRemap()
1377 i64 iOff, in fsSubtractOffset()
1379 i64 *piRes in fsSubtractOffset()
1411 i64 iOff, in fsAddOffset()
1413 i64 *piRes in fsAddOffset()
1415 i64 iEob; in fsAddOffset()
1568 i64 iEnd = (i64)iReal * pFS->nPagesize; in fsPageGet()
2396 i64 nMap; in lsmFsMoveBlock()
2398 i64 iFromOff = (i64)(iFrom-1) * pFS->nBlocksize; in lsmFsMoveBlock()
[all …]
H A Dlsm_shared.c100 int freelistAppend(lsm_db *db, u32 iBlk, i64 iId){ in freelistAppend()
168 i64 iInUse;
178 static int dbTruncate(lsm_db *pDb, i64 iInUse){ in dbTruncate()
235 pDb->pFS, (i64)ctx.nBlock*lsmFsBlockSize(pDb->pFS) in dbTruncateFile()
615 static int firstSnapshotInUse(lsm_db *, i64 *);
682 int (*x)(void *, int, i64), /* Callback function */ in lsmWalkFreelist() argument
739 i64 iInUse;
1016 static int dbSetReadLock(lsm_db *db, i64 iLsm, u32 iShm){ in dbSetReadLock()
1574 i64 iInUse = *piInUse; in firstSnapshotInUse()
1581 i64 iThis = p->iLsmId; in firstSnapshotInUse()
[all …]
/sqlite-3.40.0/ext/recover/
H A Dsqlite3recover.c34 typedef sqlite3_int64 i64; typedef
163 i64 iRowid;
164 i64 iPrevPage;
597 i64 nPg = 0; in recoverPageCount()
634 i64 iVal = ((i64)a[0]<<24) in recoverReadI32()
1479 i64 iPg, in recoverLostAndFoundFindRoot()
1480 i64 *piRoot in recoverLostAndFoundFindRoot()
1519 i64 iRoot = 0; in recoverLostAndFoundOnePage()
1521 i64 iRowid = 0; in recoverLostAndFoundOnePage()
2117 i64 nPayload = 0; in recoverIsValidPage()
[all …]
/sqlite-3.40.0/ext/fts3/
H A Dfts3Int.h175 typedef sqlite3_int64 i64; /* 8-byte signed integer */ typedef
200 #define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
201 #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
348 i64 iMinDocid; /* Minimum docid to return */
349 i64 iMaxDocid; /* Maximum docid to return */
426 i64 iOrDocid;
561 i64 nBuffer; /* Allocated size of aBuffer[] in bytes */
624 void *sqlite3Fts3MallocZero(i64 nByte);
/sqlite-3.40.0/ext/misc/
H A Dzipfile.c53 typedef sqlite3_int64 i64; typedef
270 i64 iId; /* Cursor ID */
292 i64 iNextCsrid;
728 i64 JDsec; in zipfileMtime()
744 return (u32)(JDsec - (i64)24405875*(i64)8640); in zipfileMtime()
754 i64 JD = (i64)2440588 + mUnixTime / (24*60*60); in zipfileMtimeToDos()
1151 szFile = (i64)ftell(pFile); in zipfileReadEOCD()
1226 i64 iOff; in zipfileLoadDirectory()
1500 i64 ms; in zipfileTime()
1805 i64 iOffset = pTab->szCurrent; in zipfileCommit()
[all …]
/sqlite-3.40.0/test/
H A Dthreadtest3.c683 i64 iRet = 0; in execsql_i64_x()
870 i64 iRet = 0; in filesize_x()
892 i64 iOff; in filecopy_x()
1134 i64 sum1; in walthread3_thread()
1135 i64 sum2; in walthread3_thread()
1202 i64 iRow = 1; in walthread4_writer_thread()
1242 i64 nRow; in walthread5_thread()
1317 i64 iRow; in cgt_pager_1_populate()
1327 i64 iRow; in cgt_pager_1_update()
1336 i64 iRow; in cgt_pager_1_read()
[all …]
/sqlite-3.40.0/ext/rtree/
H A Drtree.c73 typedef sqlite3_int64 i64; typedef
530 i64 x; in readInt64()
534 return (i64)( in readInt64()
1360 i64 iRowid, in nodeRowidIndex()
1855 i64 iNode = 0; in rtreeFilter()
2090 case 5: area = (i64)p->aCoord[9].i - (i64)p->aCoord[8].i; in cellArea()
2091 case 4: area *= (i64)p->aCoord[7].i - (i64)p->aCoord[6].i; in cellArea()
2092 case 3: area *= (i64)p->aCoord[5].i - (i64)p->aCoord[4].i; in cellArea()
2093 case 2: area *= (i64)p->aCoord[3].i - (i64)p->aCoord[2].i; in cellArea()
2094 default: area *= (i64)p->aCoord[1].i - (i64)p->aCoord[0].i; in cellArea()
[all …]

1234