summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* added dictID inside LZ4F_frameInfo_tYann Collet2017-08-092-15/+31
| | | | | Compressor can set dictID on LZ4F_compressBegin() Decompressor can retrieve it using LZ4F_getFrameInfo()
* Fix typos preventing installation of static lib.Ido Rosen2017-08-011-1/+2
|
* fix #369Yann Collet2017-06-262-1/+18
| | | | | | | | | | | | | | The bug would make the bt search read one byte in an invalid memory region, and make a branch decision based on its value. Impact was small (missed compression opportunity). It only happens in -BD mode, with extDict-prefix overlapping matches. The bt match search is supposed to work also in extDict mode. In which case, the match ptr can point into Dict. When the match was overlapping Dict<->Prefix, match[matchLength] would end up outside of Dict, in an invalid memory area. The correction ensures that in such a case, match[matchLength] ends up at intended location, inside prefix.
* Fix gcc7 Wimplicit-fallthrough warningsChocobo12017-06-192-4/+4
| | | | | For the default Wimplicit-fallthrough=3 level, the comment should start with "fall*"
* made level 10 a bit fasterYann Collet2017-06-141-6/+7
| | | | | | | at the expense of a little bit of compression ratio. Now speed is intermediate on calgary corpus : 25 - 12 - 8 - 3
* clarified lz4frame api comment (#350)Yann Collet2017-06-131-15/+17
|
* updated NEWSYann Collet2017-06-121-2/+2
|
* added test for LZ4F_resetDecompressionContext()Yann Collet2017-05-103-37/+47
|
* bumped version number to 1.8.0Yann Collet2017-05-101-2/+2
| | | | | due to addition of prototype LZ4F_resetDecompressionContext()
* updated MakefileYann Collet2017-05-102-7/+8
| | | | | to automatically build manual files with make all
* expose LZ4F_resetDecompressionContext()Yann Collet2017-05-102-65/+80
|
* minor readability changesYann Collet2017-05-021-22/+20
|
* changed macro HEAPMODE into LZ4_HEAPMODEYann Collet2017-05-022-13/+14
| | | | | | | This macro is susceptible to be triggered from user side typically through compiler flag (-DLZ4_HEAPMODE=1). In which case, it makes sense to prefix the macro since we want to reduce potential side-effect on namespace.
* lz4hc.c: clamp compression levels > 12Alexey Tourbin2017-04-291-0/+2
| | | | | | | | | | | | | | | I noticed that, while 'lz4 -12' works fine, 'lz4 -13' does not compress at all. $ cat </etc/passwd |wc -c 2565 $ lz4 -12 </etc/passwd |wc -c 1456 $ lz4 -13 </etc/passwd |wc -c 2584 Perhaps the best way to fix this is to clamp the compression level in the LZ4HC_compress_generic routine.
* liz4hc.h: fix a comment: LZ4HC_MAX_CLEVEL -> LZ4HC_CLEVEL_MAXAlexey Tourbin2017-04-291-2/+2
|
* [LZ4F] Allow users to disable LZ4F_DEPRECATENick Terrell2017-04-261-5/+9
|
* lz4frame : Added negative compression levelsYann Collet2017-04-093-14/+14
|
* ensure lz4f_cctx internal buffer size remain valid in case of malloc errorYann Collet2017-04-091-1/+2
|
* lz4frame : control lz4 context creation successYann Collet2017-04-091-6/+7
|
* make __packed memory access default for gccYann Collet2017-03-301-4/+3
| | | | | | | It's always as good or better then memcpy() but depends on gcc-specific extension. solves https://github.com/facebook/zstd/issues/620
* fixed minor Visual warningYann Collet2017-03-291-1/+1
|
* Improved comments on LZ4F_getFrameInfo()Yann Collet2017-03-293-5/+24
| | | | and added LZ4F_resetCompressionContext()
* Safer LZ4_getFrameInfo()Yann Collet2017-03-293-71/+103
| | | | | LZ4_getFrameInfo() is now guaranteed to keep dctx state clean, even in case of failure.
* Merge pull request #340 from lz4/optlz4optYann Collet2017-03-252-83/+86
|\ | | | | lz4opt
| * improved level 10 speed for degenerated casesYann Collet2017-03-241-1/+1
| |
| * Merge branch 'dev' into optlz4optYann Collet2017-03-241-1/+1
| |\
| * \ Merge branch 'optlz4opt' of github.com:Cyan4973/lz4 into optlz4optYann Collet2017-03-201-1/+0
| |\ \
| | * | slight btopt speed improvementYann Collet2017-03-181-2/+2
| | | | | | | | | | | | | | | | removing a useless test
| * | | minor refactorYann Collet2017-03-202-72/+75
| | | |
| * | | slight btopt speed improvementYann Collet2017-03-201-3/+4
| |/ / | | | | | | | | | removing a useless test
| * | made SET_PRICE macro more usableYann Collet2017-03-181-4/+4
| | | | | | | | | | | | | | | previous version would use argument to also change target member. Now, only values are transferred
| * | improved lz4opt speed (~4%)Yann Collet2017-03-171-12/+12
| | |
* | | Merge pull request #338 from ldv-alt/devYann Collet2017-03-241-17/+17
|\ \ \ | |_|/ |/| | Export deprecated symbols declared in lz4hc.h
| * | Export deprecated symbols declared in lz4hc.hDmitry V. Levin2017-03-241-17/+17
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 25b243588585b06a2d947372284cbfe00da930e9 exported deprecated symbols declared in lz4.h by marking all LZ4_DEPRECATED functions with LZ4LIB_API attribute. This change does the same with functions declared in lz4hc.h file, thus extending the export to lz4hc.h. As result, the following 17 deprecated functions are exported again: LZ4_compressHC LZ4_compressHC2 LZ4_compressHC2_continue LZ4_compressHC2_limitedOutput LZ4_compressHC2_limitedOutput_continue LZ4_compressHC2_limitedOutput_withStateHC LZ4_compressHC2_withStateHC LZ4_compressHC_continue LZ4_compressHC_limitedOutput LZ4_compressHC_limitedOutput_continue LZ4_compressHC_limitedOutput_withStateHC LZ4_compressHC_withStateHC LZ4_createHC LZ4_freeHC LZ4_resetStreamStateHC LZ4_sizeofStreamStateHC LZ4_slideInputBufferHC
* | fixed API comment for LZ4F_createCompressionContext()Yann Collet2017-03-241-1/+1
|/ | | | as reported by @nh2
* minor price function optimizationYann Collet2017-03-171-8/+6
|
* added `extern C` for lz4.h static sectionYann Collet2017-03-174-40/+39
| | | | should make the file more compatible with C++ compiler, such as Visual or g++
* LZ4_compress_HC_continue_destSize() works as intended up to level 10Yann Collet2017-03-162-16/+17
| | | | | It's incompatible with btopt though, so cLevel >= 11 feature much reduced performance (degraded mode)
* LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code pathYann Collet2017-03-166-60/+62
| | | | | Limits compression level to 10, to remain compatible with Hash Chain.
* updated lz4 version numberYann Collet2017-03-161-1/+1
|
* created LZ4_HC_STATIC_LINKING_ONLY sectionYann Collet2017-03-162-66/+90
| | | | where are exposed new prototypes *_destSize()
* fix #333 : expose obsolete decoding functionsYann Collet2017-03-151-8/+2
| | | | | with deprecation warning. notified by Chen Yufei
* Merge pull request #331 from ldv-alt/devYann Collet2017-03-123-13/+21
|\ | | | | Export only those symbols that are part of public API
| * Export only those symbols that are part of public APIDmitry V. Levin2017-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specify -fvisibility=hidden parameter when linking the shared library using -fPIC, assuming that gcc >= 4 is used. This change results to unexporting of the following 42 functions: LZ4F_getErrorCode LZ4_XXH32 LZ4_XXH32_canonicalFromHash LZ4_XXH32_copyState LZ4_XXH32_createState LZ4_XXH32_digest LZ4_XXH32_freeState LZ4_XXH32_hashFromCanonical LZ4_XXH32_reset LZ4_XXH32_update LZ4_XXH64 LZ4_XXH64_canonicalFromHash LZ4_XXH64_copyState LZ4_XXH64_createState LZ4_XXH64_digest LZ4_XXH64_freeState LZ4_XXH64_hashFromCanonical LZ4_XXH64_reset LZ4_XXH64_update LZ4_XXH_versionNumber LZ4_compressHC LZ4_compressHC2 LZ4_compressHC2_continue LZ4_compressHC2_limitedOutput LZ4_compressHC2_limitedOutput_continue LZ4_compressHC2_limitedOutput_withStateHC LZ4_compressHC2_withStateHC LZ4_compressHC_continue LZ4_compressHC_limitedOutput LZ4_compressHC_limitedOutput_continue LZ4_compressHC_limitedOutput_withStateHC LZ4_compressHC_withStateHC LZ4_compress_fast_force LZ4_compress_forceExtDict LZ4_createHC LZ4_decompress_safe_forceExtDict LZ4_freeHC LZ4_resetStreamStateHC LZ4_sizeofStreamStateHC LZ4_slideInputBufferHC LZ4_uncompress LZ4_uncompress_unknownOutputSize
| * Export deprecated symbolsDmitry V. Levin2017-03-101-12/+12
| | | | | | | | | | Deprecated symbols are still a part of ABI and have to be exported, so mark them with LZ4LIB_API attribute.
| * Explicitly set visibility of public API functions when gcc is usedDmitry V. Levin2017-03-102-0/+8
| | | | | | | | | | | | | | | | | | | | Windows builds already limit exporting of functions to those marked with LZ4LIB_API tag. The same behaviour could be achieved on other platforms when a relatively fresh gcc is used. This change assigns public visibility to all symbols marked with LZ4LIB_API tag. When the library is built in -fvisibility=hidden mode, only these marked symbols will be exported.
* | lz4hc: Fix LZ4HC_compress_hashChain for backward compatibilityremittor2017-03-091-2/+2
| |
* | lz4hc: Fix LZ4HC_compress_hashChain for full support destSize variantremittor2017-03-081-2/+5
| |
* | lz4hc: Add LZ4_compressHC_destSize and LZ4_compress_HC_continue_destSizeremittor2017-03-082-10/+66
| |
* | lz4hc: Cleanup function LZ4HC_encodeSequenceremittor2017-03-071-11/+18
| |