Lines Matching full:if
18 with this program; if not, write to the Free Software Foundation, Inc.,
193 if (dictSize) { in LZ4_buildCompressionParameters()
194 if (cLevel < LZ4HC_CLEVEL_MIN) { in LZ4_buildCompressionParameters()
210 if (cLevel < LZ4HC_CLEVEL_MIN) { in LZ4_buildCompressionParameters()
252 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); }
255 #define DISPLAYUPDATE(l, ...) if (g_displayLevel>=l) { \
256 if ((clock() - g_time > refreshRate) || (g_displayLevel>=4)) \
258 if (g_displayLevel>=4) fflush(stdout); } }
269 #define DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__);
334 if (!compressedBuffer || !resultBuffer || !blockTable) in BMK_benchMem()
337 …if (strlen(displayName)>17) displayName += strlen(displayName)-17; /* can only display 17 charac… in BMK_benchMem()
387 if (UTIL_clockSpanMicro(coolTime) > ACTIVEPERIOD_MICROSEC) { in BMK_benchMem()
395 …if (!cCompleted) memset(compressedBuffer, 0xE5, maxCompressedSize); /* warm up and erase result b… in BMK_benchMem()
400 if (!cCompleted) { /* still some time to do compression tests */ in BMK_benchMem()
411 if (LZ4_isError(rSize)) EXM_THROW(1, "LZ4 compression failed"); in BMK_benchMem()
415 if (clockSpan > 0) { in BMK_benchMem()
416 if (clockSpan < fastestC * nbCompressionLoops) in BMK_benchMem()
438 #if 1 in BMK_benchMem()
440 if (!dCompleted) memset(resultBuffer, 0xD6, srcSize); /* warm result buffer */ in BMK_benchMem()
445 if (!dCompleted) { in BMK_benchMem()
455 if (regenSize < 0) { in BMK_benchMem()
462 if (clockSpan > 0) { in BMK_benchMem()
463 if (clockSpan < fastestD * nbDecodeLoops) in BMK_benchMem()
483 if (crcOrig!=crcCheck) { in BMK_benchMem()
487 if (((const BYTE*)srcBuffer)[u] != ((const BYTE*)resultBuffer)[u]) { in BMK_benchMem()
492 if (bacc + blockTable[segNb].srcSize > u) break; in BMK_benchMem()
500 if (u==srcSize-1) { /* should never happen */ in BMK_benchMem()
508 if (g_displayLevel == 1) { in BMK_benchMem()
511 if (g_additionalParam) in BMK_benchMem()
535 if (requiredMem > maxMemory) requiredMem = maxMemory; in BMK_findMaxMem()
538 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()
545 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()
560 if (!pch) pch = strrchr(displayName, '/'); /* Linux */ in BMK_benchCLevel()
561 if (pch) displayName = pch+1; in BMK_benchCLevel()
565 if (g_displayLevel == 1 && !g_additionalParam) in BMK_benchCLevel()
568 if (cLevelLast < cLevel) cLevelLast = cLevel; in BMK_benchCLevel()
591 if (UTIL_isDirectory(fileNamesTable[n])) { in BMK_loadFiles()
597 if (f==NULL) EXM_THROW(10, "impossible to open file %s", fileNamesTable[n]); in BMK_loadFiles()
599 if (fileSize > bufferSize-pos) { /* buffer too small - stop after this file */ in BMK_loadFiles()
604 if (readSize != (size_t)fileSize) EXM_THROW(11, "could not read %s", fileNamesTable[n]); in BMK_loadFiles()
611 if (totalSize == 0) EXM_THROW(12, "no data to bench"); in BMK_loadFiles()
624 if (!fileSizes) EXM_THROW(12, "not enough memory for fileSizes"); in BMK_benchFileTable()
628 if (benchedSize==0) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable()
629 if ((U64)benchedSize > totalSizeToLoad) benchedSize = (size_t)totalSizeToLoad; in BMK_benchFileTable()
630 if (benchedSize > LZ4_MAX_INPUT_SIZE) { in BMK_benchFileTable()
634 if (benchedSize < totalSizeToLoad) in BMK_benchFileTable()
638 if (!srcBuffer) EXM_THROW(12, "not enough memory"); in BMK_benchFileTable()
666 if (!srcBuffer) EXM_THROW(21, "not enough memory"); in BMK_syntheticTest()
685 if (cLevel > LZ4HC_CLEVEL_MAX) cLevel = LZ4HC_CLEVEL_MAX; in BMK_benchFilesSeparately()
686 if (cLevelLast > LZ4HC_CLEVEL_MAX) cLevelLast = LZ4HC_CLEVEL_MAX; in BMK_benchFilesSeparately()
687 if (cLevelLast < cLevel) cLevelLast = cLevel; in BMK_benchFilesSeparately()
688 …if (cLevelLast > cLevel) DISPLAYLEVEL(2, "Benchmarking levels from %d to %d\n", cLevel, cLevelLast… in BMK_benchFilesSeparately()
705 if (cLevel > LZ4HC_CLEVEL_MAX) cLevel = LZ4HC_CLEVEL_MAX; in BMK_benchFiles()
706 if (cLevelLast > LZ4HC_CLEVEL_MAX) cLevelLast = LZ4HC_CLEVEL_MAX; in BMK_benchFiles()
707 if (cLevelLast < cLevel) cLevelLast = cLevel; in BMK_benchFiles()
708 …if (cLevelLast > cLevel) DISPLAYLEVEL(2, "Benchmarking levels from %d to %d\n", cLevel, cLevelLast… in BMK_benchFiles()
710 if (dictFileName) { in BMK_benchFiles()
713 if (!dictFileSize) EXM_THROW(25, "Dictionary error : could not stat dictionary file"); in BMK_benchFiles()
716 if (!dictFile) EXM_THROW(25, "Dictionary error : could not open dictionary file"); in BMK_benchFiles()
718 if (dictFileSize > LZ4_MAX_DICT_SIZE) { in BMK_benchFiles()
720 if (UTIL_fseek(dictFile, dictFileSize - dictSize, SEEK_SET)) in BMK_benchFiles()
727 if (!dictBuf) EXM_THROW(25, "Allocation error : not enough memory"); in BMK_benchFiles()
729 if (fread(dictBuf, 1, dictSize, dictFile) != (size_t)dictSize) in BMK_benchFiles()
735 if (nbFiles == 0) in BMK_benchFiles()
738 if (g_benchSeparately) in BMK_benchFiles()