summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* build: source files sorted in a FS independent mannerYann Collet2017-08-261-2/+3
| | | | | to be more compatible with reproducible builds. patch inspired by @bmwiedemann
* Don't use C++11 deprecation attribute with clangNick Terrell2017-08-241-2/+4
| | | | | Clang doesn't accept a C++11 attribute following `LZ4LIB_API`. Use the GNU attribute instead.
* FIX: added prefix to FORCE_INLINE to prevent redefinition error during ↵tcpan2017-08-244-37/+37
| | | | compilation when used with other libraries that define FORCE_INLINE
* fix : asan error in dctx, due to increased maximum frame header size, ↵v1.8.0Yann Collet2017-08-171-3/+3
| | | | reported by Craig Young
* Merge branch 'dev' into installVars and fixed conflictsYann Collet2017-08-157-526/+817
|\
| * Merge pull request #383 from lz4/blockChecksumYann Collet2017-08-153-326/+400
| |\ | | | | | | Block checksum
| | * restored block checksum capability at lz4frame API levelYann Collet2017-08-123-326/+400
| | |
| * | Merge pull request #380 from lz4/dictIDYann Collet2017-08-157-239/+456
| |\ \ | | |/ | | | Frame Dictionary API
| | * implemented lz4frame decompression APIYann Collet2017-08-103-64/+72
| | |
| | * support dictionary compression with independent blocksYann Collet2017-08-102-62/+83
| | |
| | * fixed gcc prototype warningYann Collet2017-08-101-1/+1
| | |
| | * dictionary compression correctly uses compression levelYann Collet2017-08-105-36/+62
| | | | | | | | | | | | Not obvious : copying the state was copying cdict's compression level
| | * fixed C++ conversion warningsYann Collet2017-08-101-2/+2
| | |
| | * fixed uninitialization error in lz4frameYann Collet2017-08-101-4/+5
| | |
| | * implemented dictionary compression in lz4frameYann Collet2017-08-096-93/+238
| | | | | | | | | | | | | | | note : only compression API is implemented and tested still to do : decompression API
| | * 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()
* | | better respect GNU standard Makefile conventionsYann Collet2017-08-141-17/+23
|/ / | | | | | | | | | | supports lowercase directory variables add an "Installation" section in README.md added an INSTALL file
* | Allow to predefine FORCE_INLINE macro.Alex Deymo2017-08-072-20/+32
|/ | | | | | | | | | | FORCE_INLINE macro is defined based on the compiler used. When using gcc, it will include "__attribute__((always_inline))" forcing gcc to always inline all the functions marked as FORCE_INLINE. However, this can cause a performance degradation of about 15%. This patch allows to set the FORCE_INLINE macro from the compiler command line to either "static" or "static inline" giving allowing it to inline functions as needed when performing optimizations.
* 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