Lines Matching full:i64
6614 typedef sqlite_int64 i64; /* 8-byte signed integer */
6655 #define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
6656 #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
6984 i64 intKey,
6990 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
6998 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor*, i64 *pSize);
7019 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *, i64 *);
7126 i64 *pI64; /* Used when p4type is P4_INT64 */
7596 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *, i64);
8054 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
8055 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
8056 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file*, i64 size);
8058 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
8332 i64 lastRowid; /* ROWID of most recent insert (see above) */
8396 i64 nDeferredCons; /* Net deferred constraints this transaction. */
8547 i64 nDeferredCons; /* Number of deferred fk violations */
8912 i64 rowid; /* Used by UNPACKED_PREFIX_SEARCH */
10126 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet*, i64);
10127 SQLITE_PRIVATE int sqlite3RowSetTest(RowSet*, u8 iBatch, i64);
10128 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet*, i64*);
10362 SQLITE_PRIVATE int sqlite3Atoi64(const char*, i64*);
11391 t = (time_t)(x.iJD/1000 - 21086676*(i64)10000);
11493 p->iJD = (p->iJD + 43200)/86400 + 21086676*(i64)10000000;
11898 (i64)(x.iJD/1000 - 21086676*(i64)10000));
12111 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
12115 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
12119 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file *id, i64 size){
12126 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){
12707 i64 iSize; /* Size of this allocation */
15667 overage = (int)(sqlite3_memory_used() - (i64)n);
16715 flag_longlong = sizeof(char*)==sizeof(i64);
16721 i64 v;
16723 v = va_arg(ap,i64);
17091 i64 szNew = p->nChar;
17572 i64 lastRowid; /* Last rowid from a Next or NextIdx operation */
17581 i64 movetoTarget; /* Argument to the deferred sqlite3BtreeMoveto() */
17586 i64 seqCount; /* Sequence counter */
17637 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
17662 i64 i; /* Integer value. */
17833 i64 startTime; /* Time when query started - used for profiling */
17838 i64 nFkConstraint; /* Number of imm. FK constraints this VM */
17839 i64 nStmtDefCons; /* Number of def. constraints when stmt started */
17874 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
17886 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem*, i64);
17893 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem*);
18747 i64 s = 0; /* significand */
18903 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum){
18904 i64 v = 0;
20332 static int os2Truncate( sqlite3_file *id, i64 nByte ){
24259 i64 newOffset;
24331 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
24333 i64 newOffset;
24616 static int unixTruncate(sqlite3_file *id, i64 nByte){
24645 static int unixFileSize(sqlite3_file *id, i64 *pSize){
31093 i64 v; /* ROWID value for this entry */
31179 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet *p, i64 rowid){
31394 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet *p, i64 *pRowid){
31573 i64 iOffset; /* Starting offset in main journal */
31574 i64 iHdrOffset; /* See above */
31720 i64 journalOff; /* Current write offset in the journal file */
31721 i64 journalHdr; /* Byte offset to previous journal header */
31748 i64 journalSizeLimit; /* Size limit for persistent journal files */
31879 static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){
31897 static int write32bits(sqlite3_file *fd, i64 offset, u32 val){
32038 i64 szJ; /* Total size in bytes of journal file pJrnl */
32088 static i64 journalHdrOffset(Pager *pPager){
32089 i64 offset = 0;
32090 i64 c = pPager->journalOff;
32125 const i64 iLimit = pPager->journalSizeLimit; /* Local cache of jsl */
32145 i64 sz;
32290 i64 journalSize, /* Size of the open journal file in bytes */
32296 i64 iHdrOff; /* Offset of journal header being read */
32410 i64 iHdrOff; /* Offset of header in journal file */
32411 i64 jrnlSize; /* Size of journal file on disk */
32853 i64 *pOffset, /* Offset of record to playback */
32951 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
33082 i64 nMasterJournal; /* Size of master journal file */
33191 i64 currentSize, newSize;
33194 newSize = pPager->pageSize*(i64)nPage;
33301 i64 szJ; /* Size of the journal file in bytes */
33518 i64 szJ; /* Effective size of the main journal */
33519 i64 iHdrOff; /* End of first segment of main-journal records */
33598 i64 offset = pSavepoint->iSubRec*(4+pPager->pageSize);
33909 i64 n = 0; /* File size in bytes returned by OsFileSize() */
34180 i64 iNextHdrOffset;
34322 i64 offset = (pgno-1)*(i64)pPager->pageSize; /* Offset to write */
34380 i64 offset = pPager->nSubRec*(4+pPager->pageSize);
34916 i64 iOffset; /* Byte offset of file to read from */
34926 iOffset = (pgno-1)*(i64)pPager->pageSize;
36762 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *pPager, i64 iLimit){
37245 i64 nKey; /* The key for INTKEY tables, or number of bytes in key */
37292 i64 nKey; /* Size of pKey, or last integer key */
38244 i64 iRow, /* The rowid that might be changing */
38429 i64 nKey, /* Integer key for tables. Size of pKey for indices */
38438 assert( nKey==(i64)(int)nKey );
39565 assert( sizeof(i64)==8 || sizeof(i64)==4 );
41297 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor *pCur, i64 *pSize){
42053 i64 intKey, /* The table key */
42120 i64 nCellKey;
42860 const void *pKey, i64 nKey, /* The key */
44264 const void *pKey, i64 nKey, /* The key of the new record */
44940 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *pCur, i64 *pnEntry){
44941 i64 nEntry = 0; /* Value to return in *pnEntry */
45186 i64 *pnParentMinKey,
45187 i64 *pnParentMaxKey
45198 i64 nMinKey = 0;
45199 i64 nMaxKey = 0;
45899 const i64 iEnd = (i64)iSrcPg*(i64)nSrcPgsz;
45902 i64 iOff;
45920 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){
45955 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){
45956 i64 iCurrent;
46100 const i64 iSize = (i64)nSrcPagesize * (i64)nSrcPage;
46104 assert( (i64)nDestTruncate*(i64)nDestPagesize >= iSize || (
46112 i64 iOff;
46113 i64 iEnd = MIN(PENDING_BYTE + nDestPagesize, iSize);
46638 static i64 doubleToInt64(double r){
46646 static const i64 maxInt = LARGEST_INT64;
46647 static const i64 minInt = SMALLEST_INT64;
46658 return (i64)r;
46673 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem *pMem){
46683 i64 value;
46790 i64 i;
46846 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem *pMem, i64 val){
47335 sqlite3VdbeMemSetInt64(pVal, (i64)pExpr->u.iValue);
49139 i64 offset = 0;
49865 # define MAX_6BYTE ((((i64)0x00008000)<<32)-1)
49866 i64 i = pMem->u.i;
50060 pMem->u.i = *(i64*)&x;
50085 pMem->u.i = *(i64*)&x;
50346 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
50347 i64 nCellKey = 0;
50431 i64 nCellKey = 0;
50765 sqlite3VdbeMemSetInt64(&pCtx->s, (i64)iVal);
50767 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
51179 ** of type i64, on certain architecture (x86) with certain compiler
51551 return sqlite3_bind_int64(p, i, (i64)iValue);
52180 i64 value;
52616 i64 nByte;
52620 i64 iA; /* Integer value of left operand */
52621 i64 iB; /* Integer value of right operand */
52633 i64 a;
52634 i64 b;
52659 i64 payloadSize64; /* Number of bytes in the record */
52690 i64 nByte; /* Data space required for this record */
52703 i64 nEntry;
52758 i64 iKey; /* The rowid we are to seek to */
52778 i64 R; /* Rowid stored in register P3 */
52787 i64 v; /* The new rowid */
52797 i64 iKey; /* The integer ROWID or key for the record to be inserted */
52806 i64 iKey;
52813 i64 n64;
52817 i64 v;
52854 i64 rowid;
52890 i64 val;
53596 i64 nByte;
53671 i64 iA; /* Integer value of left operand */
53672 i64 iB; /* Integer value of right operand */
53727 u.af.iA = (i64)u.af.rA;
53728 u.af.iB = (i64)u.af.rB;
53903 i64 a;
53904 i64 b;
54486 i64 payloadSize64; /* Number of bytes in the record */
54819 i64 nByte; /* Data space required for this record */
54937 i64 nEntry;
55674 i64 iKey; /* The rowid we are to seek to */
55960 i64 R; /* Rowid stored in register P3 */
56098 i64 v; /* The new rowid */
56137 # define MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff )
56274 i64 iKey; /* The integer ROWID or key for the record to be inserted */
56359 i64 iKey;
56442 i64 n64;
56510 i64 v;
56806 i64 rowid;
57251 i64 val;
62436 i64 value;
71405 i64 iVal = sqlite3_value_int64(argv[0]);
71459 i64 p1, p2;
71567 static void *contextMalloc(sqlite3_context *context, i64 nByte){
71598 z1 = contextMalloc(context, ((i64)n)+1);
71618 z1 = contextMalloc(context, ((i64)n)+1);
72062 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
72086 z = contextMalloc(context, ((i64)i)+((i64)n)+3);
72126 z = zHex = contextMalloc(context, ((i64)n)*2 + 1);
72146 i64 n;
72178 i64 nOut; /* Maximum size of zOut */
72207 zOut = contextMalloc(context, (i64)nOut);
72286 azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1));
72421 i64 iSum; /* Integer sum */
72422 i64 cnt; /* Number of elements summed */
72447 i64 v = sqlite3_value_int64(argv[0]);
72450 i64 iNewSum = p->iSum + v;
72451 int s1 = (int)(p->iSum >> (sizeof(i64)*8-1));
72452 i64)*8-1));
72453 int s3 = (int)(iNewSum >> (sizeof(i64)*8-1));
72496 i64 n;
77095 static void returnSingleInt(Parse *pParse, const char *zLabel, i64 value){
77098 i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value));
77502 i64 iLimit = -2;
107609 typedef sqlite3_int64 i64;
107752 i64 iNode;
107764 i64 iRowid;
107791 static i64 readInt64(u8 *p){
107793 (((i64)p[0]) << 56) +
107794 (((i64)p[1]) << 48) +
107795 (((i64)p[2]) << 40) +
107796 (((i64)p[3]) << 32) +
107797 (((i64)p[4]) << 24) +
107798 (((i64)p[5]) << 16) +
107799 (((i64)p[6]) << 8) +
107800 (((i64)p[7]) << 0)
107825 static int writeInt64(u8 *p, i64 i){
107860 static int nodeHash(i64 iNode){
107871 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
107930 i64 iNode, /* Node number to load */
108103 static i64 nodeGetRowid(
108412 static int nodeRowidIndex(Rtree *pRtree, RtreeNode *pNode, i64 iRowid){
108491 i64 iRowid = nodeGetRowid(pRtree, pCsr->pNode, pCsr->iCell);
108514 static int findLeafNode(Rtree *pRtree, i64 iRowid, RtreeNode **ppLeaf){
108519 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
108553 i64 iRowid = sqlite3_value_int64(argv[0]);
109436 i64 iRowid,
109541 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
109552 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
109583 i64 iNode = sqlite3_column_int64(pRtree->pReadParent, 0);
109864 static int newRowid(Rtree *pRtree, i64 *piRowid){
109906 i64 iDelete; /* The rowid to delete */
109951 i64 iChild = nodeGetRowid(pRtree, pRoot, 0);