Home
last modified time | relevance | path

Searched full:if (Results 1 – 25 of 95) sorted by relevance

1234

/lz4-3.4.0-2.7.6/programs/
Dlz4cli.c18 with this program; if not, write to the Free Software Foundation, Inc.,
72 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); }
80 #define DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__);
134 DISPLAY( " -c : force write to standard output, even if it is the console\n"); in usage_advanced()
157 if (g_lz4c_legacy_commands) { in usage_advanced()
181 DISPLAY( " - if stdout is not the console, then [output] = stdout \n"); in usage_longhelp()
182 DISPLAY( " - if stdout is console : \n"); in usage_longhelp()
185 …DISPLAY( " > if input filename has no '%s' extension : error \n", LZ4_EXTENSION… in usage_longhelp()
196 DISPLAY( "except if '-c' command is specified, to force output to console \n"); in usage_longhelp()
205 DISPLAY( "2 : compress 'filename' in high compression mode, overwrite output if exists\n"); in usage_longhelp()
[all …]
Dlz4io.c18 with this program; if not, write to the Free Software Foundation, Inc.,
40 #if defined(__MINGW32__) && !defined(_POSIX_SOURCE)
94 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); }
97 #define DISPLAYUPDATE(l, ...) if (g_displayLevel>=l) { \
98 if ( ((clock() - g_time) > refreshRate) \
102 if (g_displayLevel>=4) fflush(stderr); \
136 #define DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__);
163 if (!ret) EXM_THROW(21, "Allocation error : not enough memory"); in LZ4IO_defaultPreferences()
222 if ((bsid < minBlockSizeID) || (bsid > maxBlockSizeID)) return 0; in LZ4IO_setBlockSizeID()
233 if (blockSize < minBlockSize) blockSize = minBlockSize; in LZ4IO_setBlockSize()
[all …]
Dutil.h16 with this program; if not, write to the Free Software Foundation, Inc.,
23 #if defined (__cplusplus)
40 #if defined(_WIN32)
45 # if PLATFORM_POSIX_VERSION < 200809L
61 #if !defined (__VMS) && (defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ …
84 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
98 #if defined(_WIN32)
107 # if defined(PRIO_PROCESS)
113 # if (defined(__linux__) && (PLATFORM_POSIX_VERSION >= 199309L)) || (PLATFORM_POSIX_VERSION >= 200…
128 #if defined(_MSC_VER)
[all …]
Dbench.c18 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()
[all …]
Dplatform.h16 with this program; if not, write to the Free Software Foundation, Inc.,
23 #if defined (__cplusplus)
32 #if defined(_MSC_VER)
34 # if (_MSC_VER <= 1800) /* (1800 = Visual Studio 2013) */
45 #if defined __ia64 || defined _M_IA64 …
53 # if !defined(__64BIT__)
62 #if !defined(__64BIT__) || defined(__MINGW32__) /* No point defining Large file for 64 bit bu…
63 # if !defined(_FILE_OFFSET_BITS)
66 # if !defined(_LARGEFILE_SOURCE) /* obsolete macro, replaced with _FILE_OFFSET…
69 # if defined(_AIX) || defined(__hpux)
[all …]
DCOPYING24 this service if you wish), that you receive source code or can get it
25 if you want it, that you can change the software or use pieces of it
30 These restrictions translate to certain responsibilities for you if you
31 distribute copies of the software, or if you modify it.
33 For example, if you distribute copies of such a program, whether
45 software. If the software is modified by someone else and passed on, we
75 is covered only if its contents constitute a work based on the
103 c) If the modified program normally reads commands interactively
110 License. (Exception: if the Program itself is interactive but
114 These requirements apply to the modified work as a whole. If
[all …]
/lz4-3.4.0-2.7.6/lib/
Dlz4frame.c28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103 #if defined(LZ4_DEBUG) && (LZ4_DEBUG>=1)
113 #if defined(LZ4_DEBUG) && (LZ4_DEBUG>=2) && !defined(DEBUGLOG)
117 if ((g_debuglog_enable) && (l<=LZ4_DEBUG)) { \
130 #if !defined (__VMS) && (defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ …
257 if (LZ4F_isError(code)) return LZ4F_errorStrings[-(int)(code)]; in LZ4F_getErrorName()
263 if (!LZ4F_isError(functionResult)) return LZ4F_OK_NoError; in LZ4F_getErrorCode()
282 if (blockSizeID == 0) blockSizeID = LZ4F_BLOCKSIZEID_DEFAULT; in LZ4F_getBlockSize()
283 if (blockSizeID < LZ4F_max64KB || blockSizeID > LZ4F_max4MB) in LZ4F_getBlockSize()
310 if (srcSize <= maxBlockSize) in LZ4F_optimalBSID()
[all …]
Dlz4hc.c28 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
57 #if defined(__GNUC__)
60 #if defined (__clang__)
103 if (startingOffset > 1 GB) { in LZ4HC_init_internal()
129 if (delta>LZ4_DISTANCE_MAX) delta = LZ4_DISTANCE_MAX; in LZ4HC_Insert()
155 #if defined(_MSC_VER)
165 if (bitsToRotate == 0) return pattern; in LZ4HC_rotatePattern()
180 if (!diff) { ip+=sizeof(pattern); continue; } in LZ4HC_countPattern()
185 if (LZ4_isLittleEndian()) { in LZ4HC_countPattern()
194 if (*ip != byte) break; in LZ4HC_countPattern()
[all …]
Dlz4.c28 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
69 …* This method is safe if your compiler supports it, and *generally* as fast or faster t…
77 # if defined(__GNUC__) && \
88 * Define this parameter if your target system or compiler does not support hardware bit count
90 #if defined(_MSC_VER) && defined(_WIN32_WCE) /* Visual Studio for WinCE doesn't support Hardware …
124 #if defined(_MSC_VER) && (_MSC_VER >= 1400) /* Visual Studio 2005+ */
133 # if defined (__cplusplus) || defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99…
159 #if defined(__PPC64__) && defined(__LITTLE_ENDIAN__) && defined(__GNUC__) && !defined(__clang__)
167 #if (defined(__GNUC__) && (__GNUC__ >= 3)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 80…
228 #if (LZ4_DISTANCE_MAX > LZ4_DISTANCE_ABSOLUTE_MAX) /* max supported by LZ4 format */
[all …]
/lz4-3.4.0-2.7.6/tests/
Dtest-lz4-speed.py49 if print_command:
55 if print_output:
56 if stdout_lines:
58 if stderr_lines:
60 if popen.returncode is not None and popen.returncode != 0:
61 if stderr_lines and not print_output and print_error:
81 if have_mutt:
97 if have_mutt:
111 if ("HEAD" not in line) and ("coverity_scan" not in line) and ("gh-pages" not in line):
118 if last_commit is None:
[all …]
Dtest-lz4-list.py12 if not os.path.exists(LZ4):
21 if len(splitlines) != 7:
26 if "concat-all" in self.filename or "2f--content-size" in self.filename:
40 if i > 0:
47 if "concat-all" in nvinfo.filename:
60 if "-lz4f-" in nvinfo.filename:
69 # if "-leg" in nvinfo.filename or "-skip" in nvinfo.filename:
71 if "--BD" in nvinfo.filename:
82 if "--content-size" in nvinfo.filename:
87 if "--content-size" in nvinfo.filename:
[all …]
DcheckTag.c18 with this program; if not, write to the Free Software Foundation, Inc.,
30 * They are compatible if first 3 digits are identical.
44 * @return 1 if tag is compatible, 0 if not.
51 if (tagLength < 2) return 0; in validate()
52 if (tag[0] != 'v') return 0; in validate()
53 if (tagLength <= verLength) return 0; in validate()
55 if (strncmp(LZ4_VERSION_STRING, tag+1, verLength)) return 0; in validate()
64 if (argc!=2) { in main()
72 if (validate(tag)) { in main()
DcheckFrame.c18 with this program; if not, write to the Free Software Foundation, Inc.,
57 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); }
65 #define DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__);
106 if (!ress->srcBuffer || !ress->dstBuffer) { in createCResources()
112 if (LZ4F_isError( LZ4F_createDecompressionContext(&(ress->ctx), LZ4F_VERSION) )) { in createCResources()
144 if (!readSize) break; /* reached end of file or stream */ in frameCheck()
148 if (!nextToLoad) { in frameCheck()
153 if (LZ4F_isError(nextToLoad)) in frameCheck()
156 if (frameInfo.blockSizeID != bsid) in frameCheck()
164if (LZ4F_isError(nextToLoad)) EXM_THROW(24, "Decompression error : %s", LZ4F_getErrorName(nextToLo… in frameCheck()
[all …]
DroundTripTest.c53 if ((c)) { \
68 if (ip1[pos]!=ip2[pos]) in checkBuffers()
96 * If clevel==0, compression level is derived from srcBuff's content head bytes.
97 * This function abort() if it detects any round-trip error.
98 * Therefore, if it returns, round trip is considered successfully validated.
107 …int const selected_clevel = proposed_clevel < 0 ? -proposed_clevel : proposed_clevel; /* if leve… in roundTripTest()
133 if (!cBuff || !rBuff) { in roundTripCheck()
151 #if defined(_MSC_VER) in getFileSize()
154 if (r || !(statbuf.st_mode & S_IFREG)) return 0; /* No good... */ in getFileSize()
158 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */ in getFileSize()
[all …]
DCOPYING24 this service if you wish), that you receive source code or can get it
25 if you want it, that you can change the software or use pieces of it
30 These restrictions translate to certain responsibilities for you if you
31 distribute copies of the software, or if you modify it.
33 For example, if you distribute copies of such a program, whether
45 software. If the software is modified by someone else and passed on, we
75 is covered only if its contents constitute a work based on the
103 c) If the modified program normally reads commands interactively
110 License. (Exception: if the Program itself is interactive but
114 These requirements apply to the modified work as a whole. If
[all …]
Dframetest.c18 with this program; if not, write to the Free Software Foundation, Inc.,
84 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); }
85 #define DISPLAYUPDATE(l, ...) if (displayLevel>=l) { \
86 if ((FUZ_GetClockSpan(g_clockTime) > refreshRate) || (displayLevel>=4)) \
88 if (displayLevel>=4) fflush(stdout); } }
109 return clock() - clockStart; /* works even if overflow; max span ~ 30 mn */ in FUZ_GetClockSpan()
138 if (FUZ_RAND15BITS < P32) { in FUZ_fillCompressibleNoiseBuffer()
160 if (v32==0) return 0; in FUZ_highbit()
169 #define CHECK_V(v,f) v = f; if (LZ4F_isError(v)) { fprintf(stderr, "%s \n", LZ4F_getErrorName(v)); …
188 if (!CNBuffer || !compressedBuffer || !decodedBuffer) { in basicTests()
[all …]
Dfullbench.c18 with this program; if not, write to the Free Software Foundation, Inc.,
27 #if defined(_MSC_VER) || defined(_WIN32)
130 return clock() - clockStart; /* works even if overflow; max span ~30 mn */ in BMK_GetClockSpan()
141 if (requiredMem > MAX_MEM) requiredMem = MAX_MEM; in BMK_findMaxMem()
144 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()
151 if (requiredMem > step) requiredMem -= step; in BMK_findMaxMem()
234 #if defined (__cplusplus)
241 #if defined (__cplusplus)
316 #if defined (__cplusplus)
322 #if defined (__cplusplus)
[all …]
/lz4-3.4.0-2.7.6/
Dappveyor.yml26 - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
27 - if [%COMPILER%]==[gcc] (
33IF [%PLATFORM%]==[x64] (SET ADDITIONALPARAM=/p:LibraryPath="C:\Program Files\Microsoft SDKs\Window…
37 - if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL%
38 - if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
39 - if [%PLATFORM%]==[clang] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL%
43 - if [%PLATFORM%]==[clang] (clang -v)
44 - if [%COMPILER%]==[gcc] (gcc -v)
45 - if [%COMPILER%]==[gcc] (
49 if not [%PLATFORM%]==[clang] (
[all …]
/lz4-3.4.0-2.7.6/contrib/gen_manual/
Dgen_manual.cpp28 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49 if (string::npos != p) in trim()
74 if (terminator.empty() && line.empty()) { linenum--; break; } in get_lines()
77 if (!terminator.empty() && epos!=string::npos) { in get_lines()
93 if (line.substr(0,11) == "LZ4LIB_API ") line = line.substr(11); in print_line()
94 if (line.substr(0,12) == "LZ4FLIB_API ") line = line.substr(12); in print_line()
97 if (spos!=string::npos && epos!=string::npos) { in print_line()
116 if (argc < 4) { in main()
124 if (!istream.is_open()) { in main()
130 if (!ostream.is_open()) { in main()
[all …]
/lz4-3.4.0-2.7.6/examples/
DHCStreaming_ringBuffer.c8 #if defined(_MSC_VER) && (_MSC_VER <= 1800) /* Visual Studio <= 2013 */
70 if (0 == inpBytes) break; in test_compress()
76 if(cmpBytes <= 0) break; in test_compress()
83 if(inpOffset >= RING_BUFFER_BYTES - MESSAGE_MAX_BYTES) in test_compress()
105 if(r0 != 1 || cmpBytes <= 0) in test_decompress()
109 if(r1 != (size_t) cmpBytes) in test_decompress()
116 if(decBytes <= 0) in test_decompress()
123 if(decOffset >= DEC_BUFFER_BYTES - MESSAGE_MAX_BYTES) in test_decompress()
131 // return 0 if identical
132 // return ByteNb>0 if different
[all …]
DblockStreaming_lineByLine.c5 #if defined(_MSC_VER) && (_MSC_VER <= 1800) /* Visual Studio <= 2013 */
53 #if 0 in test_compress()
57 if (0 == inpBytes) break; in test_compress()
61 if (!fgets(inpPtr, (int) messageMaxBytes, inpFp)) in test_compress()
69 if (cmpBytes <= 0) break; in test_compress()
75 if ((size_t)inpOffset >= ringBufferBytes - messageMaxBytes) inpOffset = 0; in test_compress()
101 if (read_uint16(inpFp, &cmpBytes) != 1) break; in test_decompress()
102 if (cmpBytes == 0) break; in test_decompress()
103 if (read_bin(inpFp, cmpBuf, cmpBytes) != cmpBytes) break; in test_decompress()
109 if (decBytes <= 0) break; in test_decompress()
[all …]
DCOPYING24 this service if you wish), that you receive source code or can get it
25 if you want it, that you can change the software or use pieces of it
30 These restrictions translate to certain responsibilities for you if you
31 distribute copies of the software, or if you modify it.
33 For example, if you distribute copies of such a program, whether
45 software. If the software is modified by someone else and passed on, we
75 is covered only if its contents constitute a work based on the
103 c) If the modified program normally reads commands interactively
110 License. (Exception: if the Program itself is interactive but
114 These requirements apply to the modified work as a whole. If
[all …]
DdictionaryRandomAccess.c3 #if defined(_MSC_VER) && (_MSC_VER <= 1800) /* Visual Studio <= 2013 */
32 if (written != 1) { exit(10); } in write_int()
37 if (written != arrayBytes) { exit(11); } in write_bin()
42 if (read != 1) { exit(12); } in read_int()
47 if (ferror(fp)) { exit(12); } in read_bin()
52 if (fseek(fp, offset, origin)) { exit(14); } in seek_bin()
76 if(0 == inpBytes) { in test_compress()
86 if(cmpBytes <= 0) { exit(1); } in test_compress()
92 if (offsetsEnd - offsets > MAX_BLOCKS) { exit(2); } in test_compress()
118 if (length == 0) { return; } in test_decompress()
[all …]
DframeCompress.c35 if (nbElt>0) assert(expectedSize / nbElt == eltSize); /* check overflow */ in safe_fwrite()
36 if (writtenSize < expectedSize) { in safe_fwrite()
37 if (ferror(f)) /* note : ferror() must follow fwrite */ in safe_fwrite()
72 if (LZ4F_isError(headerSize)) { in compress_file_internal()
85 if (readSize == 0) break; /* nothing left to read from input file */ in compress_file_internal()
92 if (LZ4F_isError(compressedSize)) { in compress_file_internal()
106 if (LZ4F_isError(compressedSize)) { in compress_file_internal()
136 if (!LZ4F_isError(ctxCreation) && src && outbuff) { in compress_file()
190 if (readSize == 0 || ferror(f_in)) { in decompress_file_internal()
204 if (LZ4F_isError(ret)) { in decompress_file_internal()
[all …]
/lz4-3.4.0-2.7.6/build/cmake/
DCMakeLists.txt28 if("${CMAKE_VERSION}" VERSION_LESS "3.0")
39 # If LZ4 is being bundled in another project, we don't want to
44 if("${LZ4_BUNDLED_MODE}" STREQUAL "")
47 if("${LZ4_PARENT_DIRECTORY}" STREQUAL "")
56 if(NOT LZ4_BUNDLED_MODE AND NOT CPack_CMake_INCLUDED)
73 if(NOT BUILD_SHARED_LIBS AND NOT BUILD_STATIC_LIBS)
97 # Whether to use position independent code for the static library. If
100 option(LZ4_POSITION_INDEPENDENT_LIB "Use position independent code for static library (if applicabl…
104 if(BUILD_SHARED_LIBS)
110 if(MSVC)
[all …]

1234