summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Merge pull request #349 from svpv/masterYann Collet2017-04-303-3/+5
|\ | | | | clamp hc levels > 12 + minor fixes in comments
| * 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.
| * lz4cli.c: fix a comment: LZ4HC_DEFAULT_CLEVEL -> LZ4HC_CLEVEL_MAXAlexey Tourbin2017-04-291-1/+1
| | | | | | | | Actually the program only mentions LZ4HC_CLEVEL_MAX.
| * liz4hc.h: fix a comment: LZ4HC_MAX_CLEVEL -> LZ4HC_CLEVEL_MAXAlexey Tourbin2017-04-291-2/+2
|/
* Merge pull request #348 from terrelln/deprecateYann Collet2017-04-261-5/+9
|\ | | | | [LZ4F] Allow users to disable LZ4F_DEPRECATE
| * [LZ4F] Allow users to disable LZ4F_DEPRECATENick Terrell2017-04-261-5/+9
|/
* Merge pull request #347 from lz4/negativeCLevelsYann Collet2017-04-115-22/+35
|\ | | | | Negative Compression levels
| * lz4frame : Added negative compression levelsYann Collet2017-04-095-15/+26
| |
| * 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
* Merge pull request #344 from lz4/LZ4F_getFrameInfoYann Collet2017-03-304-104/+163
|\ | | | | LZ4F_getFrameInfo and LZ4F_resetDecompressionContext
| * fixed minor Visual warningYann Collet2017-03-291-1/+1
| |
| * Improved comments on LZ4F_getFrameInfo()Yann Collet2017-03-293-5/+24
| | | | | | | | and added LZ4F_resetCompressionContext()
| * added LZ4F_resetDecompressionContext()Yann Collet2017-03-291-22/+22
| |
| * Safer LZ4_getFrameInfo()Yann Collet2017-03-294-80/+120
|/ | | | | LZ4_getFrameInfo() is now guaranteed to keep dctx state clean, even in case of failure.
* Merge pull request #342 from iburinoc/isattyYann Collet2017-03-271-1/+10
|\ | | | | Fix IS_CONSOLE returning 1 for NUL on windows
| * Fix inline compile errorsSean Purcell2017-03-271-1/+1
| |
| * Fix IS_CONSOLE returning 1 for NUL on windowsSean Purcell2017-03-271-1/+10
|/
* Merge pull request #341 from iburinoc/exematchYann Collet2017-03-251-6/+15
|\ | | | | Ignore extensions in exe name matching
| * Ignore extensions in exe name matchingSean Purcell2017-03-241-6/+15
| |
* | 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-245-2/+16
| |\ \
| * \ \ 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
* | | Merge pull request #337 from ldv-alt/devYann Collet2017-03-234-1/+15
|\ \ \ | |/ / |/| | cli: add GNU separator -- specifying that all following arguments are files
| * | cli: add GNU separator -- specifying that all following arguments are filesDmitry V. Levin2017-03-234-1/+15
|/ / | | | | | | | | This option is supported by other compressors with compatible cli, so add it to lz4 as well for better compatibility.
* | minor price function optimizationYann Collet2017-03-171-8/+6
| |
* | added `extern C` for lz4.h static sectionYann Collet2017-03-175-41/+40
| | | | | | | | 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-163-17/+18
| | | | | | | | | | 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-169-91/+119
|/ | | | | 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-163-69/+94
| | | | where are exposed new prototypes *_destSize()
* fixed Visual compilation errorYann Collet2017-03-161-1/+1
| | | | | static const must be a "constant", like a macro even if it can be determined at compile time ...
* fix #332 : do not modify /dev/null permissionsYann Collet2017-03-163-42/+40
|
* fix #333 : expose obsolete decoding functionsYann Collet2017-03-151-8/+2
| | | | | with deprecation warning. notified by Chen Yufei
* added Oleg @remittor contributionYann Collet2017-03-121-0/+2
|
* 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.