/lz4-3.4.0-2.7.6/tests/ |
D | fullbench.c | 98 static int g_chunkSize = DEFAULT_CHUNKSIZE; 99 static int g_nbIterations = NBLOOPS; 100 static int g_pause = 0; 101 static int g_compressionTest = 1; 102 static int g_compressionAlgo = ALL_COMPRESSORS; 103 static int g_decompressionTest = 1; 104 static int g_decompressionAlgo = ALL_DECOMPRESSORS; 105 static int g_noPrompt = 0; 107 static void BMK_setBlocksize(int bsize) in BMK_setBlocksize() 113 static void BMK_setNbIterations(int nbLoops) in BMK_setNbIterations() [all …]
|
D | roundTripTest.c | 61 static size_t checkBuffers(const void* buff1, const void* buff2, size_t buffSize) in checkBuffers() 77 static int select_clevel(const void* refBuff, size_t refBuffSize) in select_clevel() 101 static void roundTripTest(void* resultBuff, size_t resultBuffCapacity, in roundTripTest() 127 static void roundTripCheck(const void* srcBuff, size_t srcSize, int clevel) in roundTripCheck() 148 static size_t getFileSize(const char* infilename) in getFileSize() 164 static int isDirectory(const char* infilename) in isDirectory() 182 static void loadFile(void* buffer, const char* fileName, size_t fileSize) in loadFile() 202 static void fileCheck(const char* fileName, int clevel) in fileCheck()
|
D | checkFrame.c | 80 static U32 no_prompt = 0; 81 static U32 displayLevel = 2; 82 static U32 use_pause = 0; 99 static int createCResources(cRess_t* ress) in createCResources() 120 static void freeCResources(cRess_t ress) in freeCResources()
|
/lz4-3.4.0-2.7.6/ossfuzz/ |
D | fuzz_helpers.h | 49 #define FUZZ_STATIC static __inline __attribute__((unused)) 52 #define FUZZ_STATIC static inline 54 #define FUZZ_STATIC static __inline 56 #define FUZZ_STATIC static 74 static const uint32_t prime1 = 2654435761U; in FUZZ_rand() 75 static const uint32_t prime2 = 2246822519U; in FUZZ_rand()
|
D | round_trip_stream_fuzzer.c | 91 static void state_reset(state_t* state, uint32_t seed) in state_reset() 103 static void state_decompress(state_t* state, char const* src, int srcSize) in state_decompress() 113 static void state_checkRoundTrip(state_t const* state) in state_checkRoundTrip() 125 static size_t state_trimDict(state_t* state) in state_trimDict() 139 static void state_prefixRoundTrip(state_t* state) in state_prefixRoundTrip() 156 static void state_extDictRoundTrip(state_t* state) in state_extDictRoundTrip() 178 static void state_randomRoundTrip(state_t* state, round_trip_t rt0, in state_randomRoundTrip() 188 static void state_loadDictRoundTrip(state_t* state) in state_loadDictRoundTrip() 197 static void state_attachDictRoundTrip(state_t* state) in state_attachDictRoundTrip() 209 static void state_prefixHCRoundTrip(state_t* state) in state_prefixHCRoundTrip() [all …]
|
/lz4-3.4.0-2.7.6/lib/ |
D | xxhash.c | 108 static void* XXH_malloc(size_t s) { return malloc(s); } in XXH_malloc() 109 static void XXH_free (void* p) { free(p); } in XXH_free() 112 static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcpy(dest,src,size); } in XXH_memcpy() 125 # define FORCE_INLINE static __forceinline 129 # define FORCE_INLINE static inline __attribute__((always_inline)) 131 # define FORCE_INLINE static inline 134 # define FORCE_INLINE static 160 static U32 XXH_read32(const void* memPtr) { return *(const U32*) memPtr; } in XXH_read32() 167 static U32 XXH_read32(const void* ptr) { return ((const unalign*)ptr)->u32; } in XXH_read32() 174 static U32 XXH_read32(const void* memPtr) in XXH_read32() [all …]
|
D | xxhash.h | 86 * This is useful to include xxhash functions in `static` mode 100 # define XXH_PUBLIC_API static __inline __attribute__((unused)) 102 # define XXH_PUBLIC_API static inline 104 # define XXH_PUBLIC_API static __inline 106 /* this version may generate warnings for unused static functions */ 107 # define XXH_PUBLIC_API static 251 These declarations should only be used with static linking. 256 * static allocation of XXH state, on stack or in a struct for example. 318 # include "xxhash.c" /* include xxhash function bodies as `static`, for inlining */
|
D | lz4hc.h | 181 * !!!!!! STATIC LINKING ONLY !!!!!! 187 * They are merely exposed to allow static allocation of `LZ4_streamHC_t`. 189 …* Even then, only do so in the context of static linking, as definitions may change between versio… 223 #define LZ4_STREAMHCSIZE 262200 /* static size, for inter-version compatibility */ 231 * This structure allows static allocation of LZ4 HC streaming state. 240 * Static allocation shall only be used in combination with static linking. 303 * !!!!! STATIC LINKING ONLY !!!!! 381 * static dictionary many times.
|
D | lz4.c | 131 # define LZ4_FORCE_INLINE static __forceinline 135 # define LZ4_FORCE_INLINE static inline __attribute__((always_inline)) 137 # define LZ4_FORCE_INLINE static inline 140 # define LZ4_FORCE_INLINE static 162 # define LZ4_FORCE_INLINE static __inline __attribute__((optimize("O2"),always_inline)) 221 static const int LZ4_minLength = (MFLIMIT+1); 253 static int g_debuglog_enable = 1; 264 static int LZ4_isAligned(const void* ptr, size_t alignment) in LZ4_isAligned() 325 static unsigned LZ4_isLittleEndian(void) in LZ4_isLittleEndian() 327 … const union { U32 u; BYTE c[4]; } one = { 1 }; /* don't use static : performance detrimental */ in LZ4_isLittleEndian() [all …]
|
D | lz4frame.c | 115 static int g_debuglog_enable = 1; 147 static U32 LZ4F_readLE32 (const void* src) in LZ4F_readLE32() 157 static void LZ4F_writeLE32 (void* dst, U32 value32) in LZ4F_writeLE32() 166 static U64 LZ4F_readLE64 (const void* src) in LZ4F_readLE64() 180 static void LZ4F_writeLE64 (void* dst, U64 value64) in LZ4F_writeLE64() 214 static const size_t minFHSize = LZ4F_HEADER_SIZE_MIN; /* 7 */ 215 static const size_t maxFHSize = LZ4F_HEADER_SIZE_MAX; /* 19 */ 216 static const size_t BHSize = LZ4F_BLOCK_HEADER_SIZE; /* block header : size, and compress flag */ 217 static const size_t BFSize = LZ4F_BLOCK_CHECKSUM_SIZE; /* block footer : checksum (optional) */ 246 static const char* LZ4F_errorStrings[] = { LZ4F_LIST_ERRORS(LZ4F_GENERATE_STRING) }; [all …]
|
D | lz4hc.c | 88 static U32 LZ4HC_hashPtr(const void* ptr) { return HASH_FUNCTION(LZ4_read32(ptr)); } in LZ4HC_hashPtr() 94 static void LZ4HC_clearTables (LZ4HC_CCtx_internal* hc4) in LZ4HC_clearTables() 100 static void LZ4HC_init_internal (LZ4HC_CCtx_internal* hc4, const BYTE* start) in LZ4HC_init_internal() 162 static U32 LZ4HC_rotatePattern(size_t const rotate, U32 const pattern) in LZ4HC_rotatePattern() 171 static unsigned 205 static unsigned 227 static int LZ4HC_protectDictEnd(U32 const dictLimit, U32 const matchIndex) in LZ4HC_protectDictEnd() 480 static const BYTE* start = NULL; in LZ4HC_encodeSequence() 481 static U32 totalCost = 0; in LZ4HC_encodeSequence() 787 static int LZ4HC_compress_optimal( LZ4HC_CCtx_internal* ctx, [all …]
|
/lz4-3.4.0-2.7.6/programs/ |
D | bench.c | 82 static void LZ4_compressInitNoStream( in LZ4_compressInitNoStream() 91 static void LZ4_compressInitStream( in LZ4_compressInitStream() 101 static void LZ4_compressInitStreamHC( in LZ4_compressInitStreamHC() 111 static void LZ4_compressResetNoStream( in LZ4_compressResetNoStream() 117 static void LZ4_compressResetStream( in LZ4_compressResetStream() 124 static void LZ4_compressResetStreamHC( in LZ4_compressResetStreamHC() 131 static int LZ4_compressBlockNoStream( in LZ4_compressBlockNoStream() 140 static int LZ4_compressBlockNoStreamHC( in LZ4_compressBlockNoStreamHC() 148 static int LZ4_compressBlockStream( in LZ4_compressBlockStream() 157 static int LZ4_compressBlockStreamHC( in LZ4_compressBlockStreamHC() [all …]
|
D | lz4io.c | 95 static int g_displayLevel = 0; /* 0 : no display ; 1: errors ; 2 : + result + interaction + war… 104 static const clock_t refreshRate = CLOCKS_PER_SEC / 6; 105 static clock_t g_time = 0; 219 static const size_t blockSizeTable[] = { 64 KB, 256 KB, 1 MB, 4 MB }; in LZ4IO_setBlockSizeID() 220 static const unsigned minBlockSizeID = 4; in LZ4IO_setBlockSizeID() 221 static const unsigned maxBlockSizeID = 7; in LZ4IO_setBlockSizeID() 230 static const size_t minBlockSize = 32; in LZ4IO_setBlockSize() 231 static const size_t maxBlockSize = 4 MB; in LZ4IO_setBlockSize() 304 static int LZ4IO_isSkippableMagicNumber(unsigned int magic) { in LZ4IO_isSkippableMagicNumber() 312 static FILE* LZ4IO_openSrcFile(const char* srcFileName) in LZ4IO_openSrcFile() [all …]
|
D | util.h | 168 # define UTIL_STATIC static __attribute__((unused)) 170 # define UTIL_STATIC static inline 172 # define UTIL_STATIC static __inline 174 # define UTIL_STATIC static /* this version may generate warnings for unused static functions; di… 187 static LARGE_INTEGER ticksPerSecond; in UTIL_getSpanTimeMicro() 188 static int init = 0; in UTIL_getSpanTimeMicro() 198 static LARGE_INTEGER ticksPerSecond; in UTIL_getSpanTimeNano() 199 static int init = 0; in UTIL_getSpanTimeNano() 215 static mach_timebase_info_data_t rate; in UTIL_getSpanTimeMicro() 216 static int init = 0; in UTIL_getSpanTimeMicro() [all …]
|
D | datagen.c | 61 static unsigned int RDG_rand(U32* src) in RDG_rand() 72 static void RDG_fillLiteralDistrib(litDistribTable lt, double ld) in RDG_fillLiteralDistrib() 83 assert(u<LTSIZE); /* try to ease static analyzer. u < end <= LTSIZE */ in RDG_fillLiteralDistrib() 92 static BYTE RDG_genChar(U32* seed, const litDistribTable lt) in RDG_genChar()
|
D | lz4cli.c | 58 static int g_lz4c_legacy_commands = 0; 73 static unsigned displayLevel = 2; /* 0 : no display ; 1: errors only ; 2 : downgradable normal ; … 105 static int usage(const char* exeName) in usage() 125 static int usage_advanced(const char* exeName) in usage_advanced() 167 static int usage_longhelp(const char* exeName) in usage_longhelp() 228 static int badusage(const char* exeName) in badusage() 236 static void waitEnter(void) in waitEnter() 242 static const char* lastNameFromPath(const char* path) in lastNameFromPath() 253 static int exeNameMatch(const char* exeName, const char* test) in exeNameMatch() 264 static unsigned readU32FromChar(const char** stringPtr) in readU32FromChar() [all …]
|
/lz4-3.4.0-2.7.6/lib/dll/example/ |
D | README.md | 11 - `static\liblz4_static.lib` : The static LZ4 library 29 #### The example of usage of static and dynamic LZ4 libraries with gcc/MinGW 33 `fullbench-lib` uses a static LZ4 library from the `lib` directory. 49 #### The example of usage of static and dynamic LZ4 libraries with Visual C++
|
/lz4-3.4.0-2.7.6/examples/ |
D | blockStreaming_lineByLine.c | 16 static size_t write_uint16(FILE* fp, uint16_t i) in write_uint16() 21 static size_t write_bin(FILE* fp, const void* array, int arrayBytes) in write_bin() 26 static size_t read_uint16(FILE* fp, uint16_t* i) in read_uint16() 31 static size_t read_bin(FILE* fp, void* array, int arrayBytes) in read_bin() 37 static void test_compress( in test_compress() 86 static void test_decompress( in test_decompress() 124 static int compare(FILE* f0, FILE* f1) in compare()
|
D | frameCompress.c | 19 static const LZ4F_preferences_t kPrefs = { 31 static void safe_fwrite(void* buf, size_t eltSize, size_t nbElt, FILE* f) in safe_fwrite() 56 static compressResult_t 122 static compressResult_t 156 static size_t get_block_size(const LZ4F_frameInfo_t* info) { in get_block_size() 170 static int 241 static int 285 static int decompress_file(FILE* f_in, FILE* f_out) in decompress_file()
|
D | HCStreaming_ringBuffer.c | 62 static char inpBuf[RING_BUFFER_BYTES]; in test_compress() 94 static char decBuf[DEC_BUFFER_BYTES]; in test_decompress() 228 unused = getchar(); (void)unused; /* silence static analyzer */ in main()
|
/lz4-3.4.0-2.7.6/build/cmake/ |
D | CMakeLists.txt | 66 # Allow people to choose whether to build shared or static libraries 68 # which case we always use static libraries. 71 CMAKE_DEPENDENT_OPTION(BUILD_STATIC_LIBS "Build static libraries" OFF "BUILD_SHARED_LIBS" ON) 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… 117 add_library(lz4_static STATIC ${LZ4_SOURCES}) 124 # link to shared whenever possible, to static otherwise
|
/lz4-3.4.0-2.7.6/ |
D | .travis.yml | 117 qemu-user-static 123 - make platformTest CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static 124 - make platformTest CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static 163 - sudo apt-get install -qq qemu-system-ppc qemu-user-static gcc-powerpc-linux-gnu 165 - make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc-static 166 - make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc64-static MOREFLAGS=-m64
|
D | appveyor.yml | 62 MKDIR bin\dll bin\static bin\example bin\include && 69 COPY lib\liblz4.a bin\static\liblz4_static.lib && 77 …z4_x64.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include && 81 …z4_x86.zip NEWS .\bin\lz4.exe .\bin\README.md .\bin\example .\bin\dll .\bin\static .\bin\include &&
|
/lz4-3.4.0-2.7.6/.circleci/ |
D | config.yml | 62 …- run: make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc-static && mak… 63 …- run: make platformTest CC=powerpc-linux-gnu-gcc QEMU_SYS=qemu-ppc64-static MOREFLAGS=-m64 && mak… 64 …- run: make platformTest CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static && mak… 65 …- run: make platformTest CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static && mak…
|
/lz4-3.4.0-2.7.6/.circleci/images/primary/ |
D | Dockerfile | 7 RUN sudo apt-get -y install qemu-system-ppc qemu-user-static qemu-system-arm
|