Home
last modified time | relevance | path

Searched refs:MIN (Results 1 – 25 of 37) sorted by relevance

12

/sqlite-3.40.0/src/
H A Dtest_onefile.c250 #define MIN(x,y) ((x)<(y)?(x):(y)) macro
309 pTmp->nSize = (int)MIN(pTmp->nSize, size); in tmpTruncate()
424 int iRealAmt = MIN(iRem, BLOCKSIZE - (iRealOff%BLOCKSIZE)); in fsRead()
466 int iRealAmt = MIN(iRem, BLOCKSIZE - (iRealOff%BLOCKSIZE)); in fsWrite()
492 pReal->nDatabase = (int)MIN(pReal->nDatabase, size); in fsTruncate()
494 pReal->nJournal = (int)MIN(pReal->nJournal, size); in fsTruncate()
H A Dmemjournal.c118 int nCopy = MIN(nRead, (p->nChunkSize - iChunkOffset)); in memjrnlRead()
225 int iSpace = MIN(nWrite, p->nChunkSize - iChunkOffset); in memjrnlWrite()
H A Dbackup.c235 const int nCopy = MIN(nSrcPgsz, nDestPgsz); in backupOnePage()
509 iEnd = MIN(PENDING_BYTE + pgszDest, iSize); in sqlite3_backup_step()
H A Dos_win.c1338 int nMin = MIN(nBuf, (SQLITE_WIN32_DBG_BUF_SIZE - 1)); /* may be negative. */ in sqlite3_win32_write_debug()
5628 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s%c%s",
5650 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s", zUtf8);
5669 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s%c%s",
5672 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s", zRelative);
5691 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s%c%s",
5752 sqlite3_snprintf(MIN(nFull, pVfs->mxPathname), zFull, "%s", zOut);
H A Dvdbesort.c820 res = memcmp(v1, v2, (MIN(n1, n2) - 13)/2); in vdbeSorterCompareText()
1006 mxCache = MIN(mxCache, SQLITE_MAX_PMASZ); in sqlite3VdbeSorterInit()
2459 nReader = MIN(pTask->nPMA - i, SORTER_MAX_MERGE_COUNT); in vdbeSorterMergeTreeBuild()
H A Dwhere.c912 mxBitCol = MIN(BMS-1,pTable->nCol); in constructAutomaticIndex()
1501 nField = MIN(pRec->nField, pIdx->nSample); in whereKeyStats()
2365 MIN(p->rRun, pTemplate->rRun), in whereLoopAdjustCost()
2366 MIN(p->nOut - 1, pTemplate->nOut))); in whereLoopAdjustCost()
2367 pTemplate->rRun = MIN(p->rRun, pTemplate->rRun); in whereLoopAdjustCost()
2368 pTemplate->nOut = MIN(p->nOut - 1, pTemplate->nOut); in whereLoopAdjustCost()
2720 nCmp = MIN(nCmp, (pIdx->nColumn - nEq)); in whereRangeVectorLen()
4850 aFrom[0].nRow = MIN(pParse->nQueryLoop, 48); assert( 48==sqlite3LogEst(28) ); in wherePathSolver()
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_tdb2.cc100 res = memcmp(pKey, pKey1, MIN((size_t)nKey1, nKey)); in test_kc_delete_range()
106 res = memcmp(pKey, pKey2, MIN((size_t)nKey2, nKey)); in test_kc_delete_range()
179 res = memcmp(pKey, pKey2, MIN((size_t)nKey2, nKey)); in test_kc_scan()
185 res = memcmp(pKey, pKey1, MIN((size_t)nKey1, nKey)); in test_kc_scan()
H A Dlsmtest_tdb4.c149 int nWrite = MIN(p->nSectorSize, iSz - iSOff); in btFlushSectors()
202 nRead = MIN(p->nSectorSize, (iSz - iSOff)); in btSaveSectors()
411 nCmp = MIN(n, nKey1); in bt_delete_range()
421 nCmp = MIN(n, nKey2); in bt_delete_range()
526 int nCmp = MIN(nK, nFirst); in bt_scan()
533 int nCmp = MIN(nK, nLast); in bt_scan()
H A Dlsmtest_main.c183 res = memcmp(pKey1, pKey2, MIN(nKey1, nKey2)); in keyCompare()
240 memcpy(p->aPrevKey, pKey, MIN(p->nPrevKey, nKey)); in scanCompareCb()
245 (memcmp(p->pKey1, pKey, MIN(p->nKey1, nKey))>0) in scanCompareCb()
246 || (memcmp(p->pKey1, pKey, MIN(p->nKey1, nKey))==0 && p->nKey1>nKey) in scanCompareCb()
251 (memcmp(p->pKey2, pKey, MIN(p->nKey2, nKey))<0) in scanCompareCb()
252 || (memcmp(p->pKey2, pKey, MIN(p->nKey2, nKey))==0 && p->nKey2<nKey) in scanCompareCb()
H A Dlsmtest_tdb.c136 res = memcmp(k, pKey2, MIN(n, nKey2)); in test_leveldb_scan()
156 res = memcmp(k, pKey2, MIN(n, nKey2)); in test_leveldb_scan()
161 res = memcmp(k, pKey1, MIN(n, nKey1)); in test_leveldb_scan()
H A Dlsmtest_mem.c8 #define MIN(x,y) ((x)<(y) ? (x) : (y)) macro
222 memcpy(pNew, p, MIN(nByte, pHdr->nByte)); in tmRealloc()
H A Dlsmtest.h57 #define MIN(x,y) ((x)<(y) ? (x) : (y)) macro
H A Dlsmtest_tdb3.c707 cmp = memcmp(pFirst, pKey, MIN(nKey, nFirst)); in test_lsm_scan()
710 cmp = memcmp(pLast, pKey, MIN(nKey, nLast)); in test_lsm_scan()
H A Dlsmtest1.c452 int nRange = MIN(p->nIter*p->nWrite, p->nRange); in doDataTest2()
H A Dlsmtest6.c275 int nByte = MIN((bLockPage ? 4066 : 4096), sz - i); in copy_file()
/sqlite-3.40.0/test/
H A Dminmax4.test189 SELECT MIN(t0.c1), t0.c0 FROM t0 WHERE t0.c1 ISNULL;
200 SELECT MIN(a) FROM t1 WHERE a=123;
233 SELECT v0.c0, MIN(v0.c1) FROM v0;
H A Dwindow9.test184 SELECT MIN(c0) OVER (), CUME_DIST() OVER () FROM t0
187 SELECT MIN(c0) OVER (), CUME_DIST() OVER () FROM t0
193 SELECT MIN(c0) OVER (), CUME_DIST() OVER () FROM t0
H A Dwith2.test454 SELECT y, MIN(labely) FROM d GROUP BY y
476 SELECT MIN(abs(y2-y)) FROM d WHERE y2 != y
/sqlite-3.40.0/ext/async/
H A Dsqlite3async.c28 #define MIN(x,y) ((x)<(y)?(x):(y)) macro
691 nRead = MIN(filesize - iOffset, iAmt64); in asyncRead()
722 nCopy = MIN(nByte64-iBeginIn, iAmt64-iBeginOut); in asyncRead()
799 s = MIN(s, pWrite->iOffset); in asyncFileSize()
904 pLock->eLock = MIN(pLock->eLock, eLock); in asyncUnlock()
1500 pData->lock.eAsyncLock = MIN( in asyncWriterThread()
/sqlite-3.40.0/ext/fts3/
H A Dfts3Int.h85 #ifndef MIN
86 # define MIN(x,y) ((x)<(y)?(x):(y)) macro
/sqlite-3.40.0/ext/fts5/
H A Dfts5_vocab.c429 int nCmp = MIN(nTerm, pCsr->nLeTerm); in fts5VocabInstanceNewTerm()
503 int nCmp = MIN(nTerm, pCsr->nLeTerm); in fts5VocabNextMethod()
H A Dfts5_index.c587 int nCmp = MIN(pLeft->n, nRight); in fts5BufferCompareBlob()
604 nCmp = MIN(pLeft->n, pRight->n); in fts5BufferCompare()
1646 int iEod = MIN(pIter->iEndofDoclist, pIter->pLeaf->szLeaf); in fts5SegIterLoadNPos()
2321 nCmp = (u32)MIN(nNew, nTerm-nMatch); in fts5LeafSeek()
2601 int nMin = MIN(p1->term.n, p2->term.n); in fts5AssertComparisonResult()
3128 int nChunk = MIN(nRem, pSeg->pLeaf->szLeaf - pSeg->iLeafOffset); in fts5ChunkIterate()
3153 nChunk = MIN(nRem, pData->szLeaf - 4); in fts5ChunkIterate()
3471 nSeg = MIN(pStruct->aLevel[iLevel].nSeg, nSegment); in fts5MultiIterNew()
3992 int nMin = MIN(pPage->term.n, nTerm); in fts5WriteAppendTerm()
5273 assert_nc( memcmp(pToken, pTerm, MIN(nToken, nTerm))<=0 ); in fts5SetupPrefixIter()
[all …]
H A Dfts5Int.h53 #define MIN(x,y) (((x) < (y)) ? (x) : (y)) macro
/sqlite-3.40.0/ext/misc/
H A Dzipfile.c57 #define MIN(a,b) ((a)<(b) ? (a) : (b)) macro
1155 nRead = (int)(MIN(szFile, ZIPFILE_BUFFER_SIZE)); in zipfileReadEOCD()
1159 nRead = (int)(MIN(nBlob, ZIPFILE_BUFFER_SIZE)); in zipfileReadEOCD()
/sqlite-3.40.0/ext/rtree/
H A Drtree.c418 #ifndef MIN
419 # define MIN(x,y) ((x) > (y) ? (y) : (x)) macro
2121 p1->aCoord[ii].f = MIN(p1->aCoord[ii].f, p2->aCoord[ii].f); in cellUnion()
2127 p1->aCoord[ii].i = MIN(p1->aCoord[ii].i, p2->aCoord[ii].i); in cellUnion()
2179 x2 = MIN(DCOORD(p->aCoord[jj+1]), DCOORD(aCell[ii].aCoord[jj+1])); in cellOverlap()

12