Lines Matching full:i64
530 #define IS_BIG_INT(X) (((X)&~(i64)0xffffffff)!=0)
7200 typedef sqlite_int64 i64; /* 8-byte signed integer */
7241 #define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
7242 #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
7578 i64 intKey,
7584 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
7592 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor*, i64 *pSize);
7615 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *, i64 *);
7726 i64 *pI64; /* Used when p4type is P4_INT64 */
8204 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *, i64);
8678 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
8679 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
8680 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file*, i64 size);
8682 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
8948 i64 lastRowid; /* ROWID of most recent insert (see above) */
9016 i64 nDeferredCons; /* Net deferred constraints this transaction. */
9194 i64 nDeferredCons; /* Number of deferred fk violations */
9559 i64 rowid; /* Used by UNPACKED_PREFIX_SEARCH */
10802 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet*, i64);
10803 SQLITE_PRIVATE int sqlite3RowSetTest(RowSet*, u8 iBatch, i64);
10804 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet*, i64*);
11037 SQLITE_PRIVATE int sqlite3Atoi64(const char*, i64*, int, u8);
12021 i64 lastRowid; /* Last rowid from a Next or NextIdx operation */
12031 i64 movetoTarget; /* Argument to the deferred sqlite3BtreeMoveto() */
12036 i64 seqCount; /* Sequence counter */
12095 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
12120 i64 i; /* Integer value. */
12302 i64 startTime; /* Time when query started - used for profiling */
12307 i64 nFkConstraint; /* Number of imm. FK constraints this VM */
12308 i64 nStmtDefCons; /* Number of def. constraints when stmt started */
12345 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
12357 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem*, i64);
12368 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem*);
13048 t = (time_t)(x.iJD/1000 - 21086676*(i64)10000);
13150 p->iJD = (p->iJD + 43200)/86400 + 21086676*(i64)10000000;
13559 (i64)(x.iJD/1000 - 21086676*(i64)10000));
13767 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
13771 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
13775 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file *id, i64 size){
13782 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){
14394 i64 iSize; /* Size of this allocation */
18621 flag_longlong = sizeof(char*)==sizeof(i64);
18627 i64 v;
18629 v = va_arg(ap,i64);
18999 i64 szNew = p->nChar;
20227 i64 s = 0; /* significand */
20416 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){
20418 i64 v = 0;
21830 static int os2Truncate( sqlite3_file *id, i64 nByte ){
25700 i64 newOffset;
25775 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
25778 i64 newOffset;
26071 static int unixTruncate(sqlite3_file *id, i64 nByte){
26111 static int unixFileSize(sqlite3_file *id, i64 *pSize){
26151 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
26153 i64 nSize; /* Required file size */
26159 if( nSize>(i64)buf.st_size ){
26174 i64 iWrite; /* Next offset to write to */
26212 return fcntlSizeHint((unixFile *)id, *(i64 *)pArg);
34352 i64 v; /* ROWID value for this entry */
34438 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet *p, i64 rowid){
34653 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet *p, i64 *pRowid){
35257 i64 iOffset; /* Starting offset in main journal */
35258 i64 iHdrOffset; /* See above */
35463 i64 journalOff; /* Current write offset in the journal file */
35464 i64 journalHdr; /* Byte offset to previous journal header */
35479 i64 journalSizeLimit; /* Size limit for persistent journal files */
35830 static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){
35849 static int write32bits(sqlite3_file *fd, i64 offset, u32 val){
36017 i64 szJ; /* Total size in bytes of journal file pJrnl */
36067 static i64 journalHdrOffset(Pager *pPager){
36068 i64 offset = 0;
36069 i64 c = pPager->journalOff;
36104 const i64 iLimit = pPager->journalSizeLimit; /* Local cache of jsl */
36124 i64 sz;
36270 i64 journalSize, /* Size of the open journal file in bytes */
36276 i64 iHdrOff; /* Offset of journal header being read */
36395 i64 iHdrOff; /* Offset of header in journal file */
36396 i64 jrnlSize; /* Size of journal file on disk */
36909 i64 *pOffset, /* Offset of record to playback */
37041 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
37178 i64 nMasterJournal; /* Size of master journal file */
37290 i64 currentSize, newSize;
37294 newSize = pPager->pageSize*(i64)nPage;
37401 i64 szJ; /* Size of the journal file in bytes */
37621 i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
37861 i64 n = 0; /* Size of db file in bytes */
37975 i64 szJ; /* Effective size of the main journal */
37976 i64 iHdrOff; /* End of first segment of main-journal records */
38062 i64 offset = pSavepoint->iSubRec*(4+pPager->pageSize);
38280 i64 nByte = 0;
38674 i64 iNextHdrOffset;
38815 i64 offset = (pgno-1)*(i64)pPager->pageSize; /* Offset to write */
38908 i64 offset = pPager->nSubRec*(4+pPager->pageSize);
40124 i64 iOff = pPager->journalOff;
41378 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *pPager, i64 iLimit){
41986 WAL_HDRSIZE + ((iFrame)-1)*(i64)((szPage)+WAL_FRAME_HDRSIZE) \
42627 i64 nSize; /* Size of log file */
42663 i64 iOffset; /* Next offset to read from log file */
43201 i64 nSize; /* Current size of database file */
43213 i64 nReq = ((i64)mxPage * szPage);
43222 i64 iOffset;
43229 iOffset = (iDbpage-1)*(i64)szPage;
43238 i64 szDb = pWal->hdr.nPage*(i64)szPage;
43811 i64 iOffset;
44123 i64 iOffset; /* Write offset in log file */
44152 i64 iSegment = sqlite3OsSectorSize(pWal->pWalFd);
44153 i64 iOffset = walFrameOffset(iFrame+1, szPage);
44826 i64 nKey; /* The key for INTKEY tables, or number of bytes in key */
44873 i64 nKey; /* Size of pKey, or last integer key */
45834 i64 iRow, /* The rowid that might be changing */
46016 i64 nKey, /* Integer key for tables. Size of pKey for indices */
46025 assert( nKey==(i64)(int)nKey );
47179 assert( sizeof(i64)==8 || sizeof(i64)==4 );
49011 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor *pCur, i64 *pSize){
49766 i64 intKey, /* The table key */
49833 i64 nCellKey;
50593 const void *pKey, i64 nKey, /* The key */
52005 const void *pKey, i64 nKey, /* The key of the new record */
52694 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *pCur, i64 *pnEntry){
52695 i64 nEntry = 0; /* Value to return in *pnEntry */
52940 i64 *pnParentMinKey,
52941 i64 *pnParentMaxKey
52952 i64 nMinKey = 0;
52953 i64 nMaxKey = 0;
53715 const i64 iEnd = (i64)iSrcPg*(i64)nSrcPgsz;
53718 i64 iOff;
53745 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){
53780 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){
53781 i64 iCurrent;
53936 const i64 iSize = (i64)pgszSrc * (i64)nSrcPage;
53940 assert( (i64)nDestTruncate*(i64)pgszDest >= iSize || (
53948 i64 iOff;
53949 i64 iEnd = MIN(PENDING_BYTE + pgszDest, iSize);
54483 static i64 doubleToInt64(double r){
54495 static const i64 maxInt = LARGEST_INT64;
54496 static const i64 minInt = SMALLEST_INT64;
54507 return (i64)r;
54523 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem *pMem){
54533 i64 value;
54690 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem *pMem, i64 val){
55223 sqlite3VdbeMemSetInt64(pVal, (i64)pExpr->u.iValue*negInt);
57040 i64 offset = 0;
57804 # define MAX_6BYTE ((((i64)0x00008000)<<32)-1)
57805 i64 i = pMem->u.i;
57999 pMem->u.i = *(i64*)&x;
58024 pMem->u.i = *(i64*)&x;
58285 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
58286 i64 nCellKey = 0;
58370 i64 nCellKey = 0;
58706 sqlite3VdbeMemSetInt64(&pCtx->s, (i64)iVal);
58708 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
59151 ** of type i64, on certain architecture (x86) with certain compiler
59530 return sqlite3_bind_int64(p, i, (i64)iValue);
60175 i64 iValue;
60608 i64 nByte;
60612 i64 iA; /* Integer value of left operand */
60613 i64 iB; /* Integer value of right operand */
60625 i64 a;
60626 i64 b;
60653 i64 payloadSize64; /* Number of bytes in the record */
60684 i64 nByte; /* Data space required for this record */
60697 i64 nEntry;
60752 i64 iKey; /* The rowid we are to seek to */
60772 i64 R; /* Rowid stored in register P3 */
60781 i64 v; /* The new rowid */
60791 i64 iKey; /* The integer ROWID or key for the record to be inserted */
60800 i64 iKey;
60807 i64 n64;
60811 i64 v;
60848 i64 rowid;
60884 i64 val;
61579 i64 nByte;
61654 i64 iA; /* Integer value of left operand */
61655 i64 iB; /* Integer value of right operand */
61710 u.af.iA = (i64)u.af.rA;
61711 u.af.iB = (i64)u.af.rB;
61894 i64 a;
61895 i64 b;
62491 i64 payloadSize64; /* Number of bytes in the record */
62824 i64 nByte; /* Data space required for this record */
62946 i64 nEntry;
63696 i64 iKey; /* The rowid we are to seek to */
63989 i64 R; /* Rowid stored in register P3 */
64130 i64 v; /* The new rowid */
64169 # define MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff )
64315 i64 iKey; /* The integer ROWID or key for the record to be inserted */
64402 i64 iKey;
64485 i64 n64;
64554 i64 v;
64857 i64 rowid;
65308 i64 val;
69367 i64 i;
70767 i64 value;
79768 i64 iVal = sqlite3_value_int64(argv[0]);
79822 i64 p1, p2;
79940 static void *contextMalloc(sqlite3_context *context, i64 nByte){
79971 z1 = contextMalloc(context, ((i64)n)+1);
79991 z1 = contextMalloc(context, ((i64)n)+1);
80493 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
80517 z = contextMalloc(context, ((i64)i)+((i64)n)+3);
80557 z = zHex = contextMalloc(context, ((i64)n)*2 + 1);
80577 i64 n;
80609 i64 nOut; /* Maximum size of zOut */
80638 zOut = contextMalloc(context, (i64)nOut);
80717 azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1));
80852 i64 iSum; /* Integer sum */
80853 i64 cnt; /* Number of elements summed */
80878 i64 v = sqlite3_value_int64(argv[0]);
80881 i64 iNewSum = p->iSum + v;
80882 int s1 = (int)(p->iSum >> (sizeof(i64)*8-1));
80883 int s2 = (int)(v >> (sizeof(i64)*8-1));
80884 int s3 = (int)(iNewSum >> (sizeof(i64)*8-1));
80927 i64 n;
85621 static void returnSingleInt(Parse *pParse, const char *zLabel, i64 value){
85624 i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value));
86057 i64 iLimit = -2;
119227 typedef sqlite3_int64 i64;
119375 i64 iNode;
119387 i64 iRowid;
119448 static i64 readInt64(u8 *p){
119450 (((i64)p[0]) << 56) +
119451 (((i64)p[1]) << 48) +
119452 (((i64)p[2]) << 40) +
119453 (((i64)p[3]) << 32) +
119454 (((i64)p[4]) << 24) +
119455 (((i64)p[5]) << 16) +
119456 (((i64)p[6]) << 8) +
119457 (((i64)p[7]) << 0)
119482 static int writeInt64(u8 *p, i64 i){
119515 static int nodeHash(i64 iNode){
119526 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
119582 i64 iNode, /* Node number to load */
119780 static i64 nodeGetRowid(
120170 i64 iRowid,
120263 i64 iRowid = nodeGetRowid(pRtree, pCsr->pNode, pCsr->iCell);
120286 static int findLeafNode(Rtree *pRtree, i64 iRowid, RtreeNode **ppLeaf){
120291 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
120369 i64 iRowid = sqlite3_value_int64(argv[0]);
121290 i64 iRowid,
121405 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
121416 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
121462 i64 iNode; /* Node number of parent node */
121763 static int newRowid(Rtree *pRtree, i64 *piRowid){
121794 i64 iDelete; /* The rowid to delete */
121841 i64 iChild = nodeGetRowid(pRtree, pRoot, 0);