Home | History | Annotate | Download | only in dist

Lines Matching full:i64

526 #define IS_BIG_INT(X)  (((X)&~(i64)0xffffffff)!=0)
7193 typedef sqlite_int64 i64; /* 8-byte signed integer */
7234 #define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
7235 #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
7571 i64 intKey,
7577 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
7585 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor*, i64 *pSize);
7608 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *, i64 *);
7719 i64 *pI64; /* Used when p4type is P4_INT64 */
8197 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *, i64);
8671 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
8672 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
8673 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file*, i64 size);
8675 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
8941 i64 lastRowid; /* ROWID of most recent insert (see above) */
9009 i64 nDeferredCons; /* Net deferred constraints this transaction. */
9187 i64 nDeferredCons; /* Number of deferred fk violations */
9552 i64 rowid; /* Used by UNPACKED_PREFIX_SEARCH */
10795 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet*, i64);
10796 SQLITE_PRIVATE int sqlite3RowSetTest(RowSet*, u8 iBatch, i64);
10797 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet*, i64*);
11030 SQLITE_PRIVATE int sqlite3Atoi64(const char*, i64*, int, u8);
12014 i64 lastRowid; /* Last rowid from a Next or NextIdx operation */
12024 i64 movetoTarget; /* Argument to the deferred sqlite3BtreeMoveto() */
12029 i64 seqCount; /* Sequence counter */
12088 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
12113 i64 i; /* Integer value. */
12295 i64 startTime; /* Time when query started - used for profiling */
12300 i64 nFkConstraint; /* Number of imm. FK constraints this VM */
12301 i64 nStmtDefCons; /* Number of def. constraints when stmt started */
12338 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
12350 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem*, i64);
12361 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem*);
13041 t = (time_t)(x.iJD/1000 - 21086676*(i64)10000);
13143 p->iJD = (p->iJD + 43200)/86400 + 21086676*(i64)10000000;
13552 (i64)(x.iJD/1000 - 21086676*(i64)10000));
13760 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
13764 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
13768 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file *id, i64 size){
13775 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){
14387 i64 iSize; /* Size of this allocation */
18614 flag_longlong = sizeof(char*)==sizeof(i64);
18620 i64 v;
18622 v = va_arg(ap,i64);
18992 i64 szNew = p->nChar;
20220 i64 s = 0; /* significand */
20409 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){
20411 i64 v = 0;
21823 static int os2Truncate( sqlite3_file *id, i64 nByte ){
25693 i64 newOffset;
25768 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
25771 i64 newOffset;
26064 static int unixTruncate(sqlite3_file *id, i64 nByte){
26104 static int unixFileSize(sqlite3_file *id, i64 *pSize){
26144 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
26146 i64 nSize; /* Required file size */
26152 if( nSize>(i64)buf.st_size ){
26167 i64 iWrite; /* Next offset to write to */
26205 return fcntlSizeHint((unixFile *)id, *(i64 *)pArg);
34345 i64 v; /* ROWID value for this entry */
34431 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet *p, i64 rowid){
34646 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet *p, i64 *pRowid){
35250 i64 iOffset; /* Starting offset in main journal */
35251 i64 iHdrOffset; /* See above */
35456 i64 journalOff; /* Current write offset in the journal file */
35457 i64 journalHdr; /* Byte offset to previous journal header */
35472 i64 journalSizeLimit; /* Size limit for persistent journal files */
35823 static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){
35842 static int write32bits(sqlite3_file *fd, i64 offset, u32 val){
36010 i64 szJ; /* Total size in bytes of journal file pJrnl */
36060 static i64 journalHdrOffset(Pager *pPager){
36061 i64 offset = 0;
36062 i64 c = pPager->journalOff;
36097 const i64 iLimit = pPager->journalSizeLimit; /* Local cache of jsl */
36117 i64 sz;
36263 i64 journalSize, /* Size of the open journal file in bytes */
36269 i64 iHdrOff; /* Offset of journal header being read */
36388 i64 iHdrOff; /* Offset of header in journal file */
36389 i64 jrnlSize; /* Size of journal file on disk */
36902 i64 *pOffset, /* Offset of record to playback */
37034 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
37171 i64 nMasterJournal; /* Size of master journal file */
37283 i64 currentSize, newSize;
37287 newSize = pPager->pageSize*(i64)nPage;
37394 i64 szJ; /* Size of the journal file in bytes */
37614 i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
37854 i64 n = 0; /* Size of db file in bytes */
37968 i64 szJ; /* Effective size of the main journal */
37969 i64 iHdrOff; /* End of first segment of main-journal records */
38055 i64 offset = pSavepoint->iSubRec*(4+pPager->pageSize);
38273 i64 nByte = 0;
38667 i64 iNextHdrOffset;
38808 i64 offset = (pgno-1)*(i64)pPager->pageSize; /* Offset to write */
38901 i64 offset = pPager->nSubRec*(4+pPager->pageSize);
40117 i64 iOff = pPager->journalOff;
41371 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *pPager, i64 iLimit){
41979 WAL_HDRSIZE + ((iFrame)-1)*(i64)((szPage)+WAL_FRAME_HDRSIZE) \
42620 i64 nSize; /* Size of log file */
42656 i64 iOffset; /* Next offset to read from log file */
43194 i64 nSize; /* Current size of database file */
43206 i64 nReq = ((i64)mxPage * szPage);
43215 i64 iOffset;
43222 iOffset = (iDbpage-1)*(i64)szPage;
43231 i64 szDb = pWal->hdr.nPage*(i64)szPage;
43804 i64 iOffset;
44116 i64 iOffset; /* Write offset in log file */
44145 i64 iSegment = sqlite3OsSectorSize(pWal->pWalFd);
44146 i64 iOffset = walFrameOffset(iFrame+1, szPage);
44819 i64 nKey; /* The key for INTKEY tables, or number of bytes in key */
44866 i64 nKey; /* Size of pKey, or last integer key */
45827 i64 iRow, /* The rowid that might be changing */
46009 i64 nKey, /* Integer key for tables. Size of pKey for indices */
46018 assert( nKey==(i64)(int)nKey );
47172 assert( sizeof(i64)==8 || sizeof(i64)==4 );
49004 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor *pCur, i64 *pSize){
49759 i64 intKey, /* The table key */
49826 i64 nCellKey;
50586 const void *pKey, i64 nKey, /* The key */
51998 const void *pKey, i64 nKey, /* The key of the new record */
52687 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *pCur, i64 *pnEntry){
52688 i64 nEntry = 0; /* Value to return in *pnEntry */
52933 i64 *pnParentMinKey,
52934 i64 *pnParentMaxKey
52945 i64 nMinKey = 0;
52946 i64 nMaxKey = 0;
53708 const i64 iEnd = (i64)iSrcPg*(i64)nSrcPgsz;
53711 i64 iOff;
53738 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){
53773 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){
53774 i64 iCurrent;
53929 const i64 iSize = (i64)pgszSrc * (i64)nSrcPage;
53933 assert( (i64)nDestTruncate*(i64)pgszDest >= iSize || (
53941 i64 iOff;
53942 i64 iEnd = MIN(PENDING_BYTE + pgszDest, iSize);
54476 static i64 doubleToInt64(double r){
54488 static const i64 maxInt = LARGEST_INT64;
54489 static const i64 minInt = SMALLEST_INT64;
54500 return (i64)r;
54516 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem *pMem){
54526 i64 value;
54683 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem *pMem, i64 val){
55216 sqlite3VdbeMemSetInt64(pVal, (i64)pExpr->u.iValue*negInt);
57033 i64 offset = 0;
57797 # define MAX_6BYTE ((((i64)0x00008000)<<32)-1)
57798 i64 i = pMem->u.i;
57992 pMem->u.i = *(i64*)&x;
58017 pMem->u.i = *(i64*)&x;
58278 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
58279 i64 nCellKey = 0;
58363 i64 nCellKey = 0;
58699 sqlite3VdbeMemSetInt64(&pCtx->s, (i64)iVal);
58701 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
59144 ** of type i64, on certain architecture (x86) with certain compiler
59523 return sqlite3_bind_int64(p, i, (i64)iValue);
60168 i64 iValue;
60601 i64 nByte;
60605 i64 iA; /* Integer value of left operand */
60606 i64 iB; /* Integer value of right operand */
60618 i64 a;
60619 i64 b;
60646 i64 payloadSize64; /* Number of bytes in the record */
60677 i64 nByte; /* Data space required for this record */
60690 i64 nEntry;
60745 i64 iKey; /* The rowid we are to seek to */
60765 i64 R; /* Rowid stored in register P3 */
60774 i64 v; /* The new rowid */
60784 i64 iKey; /* The integer ROWID or key for the record to be inserted */
60793 i64 iKey;
60800 i64 n64;
60804 i64 v;
60841 i64 rowid;
60877 i64 val;
61572 i64 nByte;
61647 i64 iA; /* Integer value of left operand */
61648 i64 iB; /* Integer value of right operand */
61703 u.af.iA = (i64)u.af.rA;
61704 u.af.iB = (i64)u.af.rB;
61887 i64 a;
61888 i64 b;
62484 i64 payloadSize64; /* Number of bytes in the record */
62817 i64 nByte; /* Data space required for this record */
62939 i64 nEntry;
63689 i64 iKey; /* The rowid we are to seek to */
63982 i64 R; /* Rowid stored in register P3 */
64123 i64 v; /* The new rowid */
64162 # define MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff )
64308 i64 iKey; /* The integer ROWID or key for the record to be inserted */
64395 i64 iKey;
64478 i64 n64;
64547 i64 v;
64850 i64 rowid;
65301 i64 val;
69360 i64 i;
70760 i64 value;
79761 i64 iVal = sqlite3_value_int64(argv[0]);
79815 i64 p1, p2;
79933 static void *contextMalloc(sqlite3_context *context, i64 nByte){
79964 z1 = contextMalloc(context, ((i64)n)+1);
79984 z1 = contextMalloc(context, ((i64)n)+1);
80486 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
80510 z = contextMalloc(context, ((i64)i)+((i64)n)+3);
80550 z = zHex = contextMalloc(context, ((i64)n)*2 + 1);
80570 i64 n;
80602 i64 nOut; /* Maximum size of zOut */
80631 zOut = contextMalloc(context, (i64)nOut);
80710 azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1));
80845 i64 iSum; /* Integer sum */
80846 i64 cnt; /* Number of elements summed */
80871 i64 v = sqlite3_value_int64(argv[0]);
80874 i64 iNewSum = p->iSum + v;
80875 int s1 = (int)(p->iSum >> (sizeof(i64)*8-1));
80876 int s2 = (int)(v >> (sizeof(i64)*8-1));
80877 int s3 = (int)(iNewSum >> (sizeof(i64)*8-1));
80920 i64 n;
85614 static void returnSingleInt(Parse *pParse, const char *zLabel, i64 value){
85617 i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value));
86050 i64 iLimit = -2;
119196 typedef sqlite3_int64 i64;
119344 i64 iNode;
119356 i64 iRowid;
119417 static i64 readInt64(u8 *p){
119419 (((i64)p[0]) << 56) +
119420 (((i64)p[1]) << 48) +
119421 (((i64)p[2]) << 40) +
119422 (((i64)p[3]) << 32) +
119423 (((i64)p[4]) << 24) +
119424 (((i64)p[5]) << 16) +
119425 (((i64)p[6]) << 8) +
119426 (((i64)p[7]) << 0)
119451 static int writeInt64(u8 *p, i64 i){
119484 static int nodeHash(i64 iNode){
119495 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
119551 i64 iNode, /* Node number to load */
119749 static i64 nodeGetRowid(
120139 i64 iRowid,
120232 i64 iRowid = nodeGetRowid(pRtree, pCsr->pNode, pCsr->iCell);
120255 static int findLeafNode(Rtree *pRtree, i64 iRowid, RtreeNode **ppLeaf){
120260 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
120338 i64 iRowid = sqlite3_value_int64(argv[0]);
121259 i64 iRowid,
121374 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
121385 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
121431 i64 iNode; /* Node number of parent node */
121732 static int newRowid(Rtree *pRtree, i64 *piRowid){
121763 i64 iDelete; /* The rowid to delete */
121810 i64 iChild = nodeGetRowid(pRtree, pRoot, 0);