summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* modified decompression part of frameCompress.cYann Collet2018-02-011-99/+138
| | | | using same logic as prior modifications for compression part.
* refactored ressource allocation to avoid gotoYann Collet2018-02-011-23/+12
|
* examples/Makefile : changed dependency orderYann Collet2018-02-012-10/+10
| | | | static library *.a must come after source files *.c on linux
* Merge branch 'dev' into frameCompressYann Collet2018-02-014-47/+42
|\
| * travisci : ensure "clean" betweeb 2 testsYann Collet2018-02-011-1/+1
| |
| * modified gpptest recipeYann Collet2018-02-011-11/+8
| |
| * Merge pull request #459 from Tyilo/clang-stdc++14Yann Collet2018-02-012-35/+33
| |\ | | | | | | Ensure LZ4_DEPRECATED("...") is before LZ4LIB_API
| | * Always prefer c++14 attributes if availableAsger Hautop Drewsen2018-01-311-4/+2
| | |
| | * Ensure LZ4_DEPRECATED("...") is before LZ4LIB_APIAsger Hautop Drewsen2018-01-312-31/+31
| |/ | | | | | | | | | | When using clang++ with std c++14 or c++17 you would get the error "an attribute list cannot appear here" when including "lz4.h" as the visibility attribute is before the c++ attribute. This ensures that the [[deprecated]] c++ attribute is before everything else in the function declarations.
* | refactored frameCompress.c example codeYann Collet2018-02-011-51/+81
| | | | | | | | | | | | compression function returns a struct. Also : nested structure ressources->computation to make it easier to manage multiple exit points.
* | fixed read size, as noticed by @terrellnYann Collet2018-02-011-1/+1
| |
* | ensure proper dependencies are built for /examplesYann Collet2018-02-011-19/+25
| | | | | | | | also : use liblz4.a static lib to share compilation time
* | refactored frameCompress exampleYann Collet2018-01-316-96/+120
|/ | | | to better reflect LZ4F API usage.
* Merge pull request #455 from terrelln/hc-defaultYann Collet2018-01-221-1/+1
|\ | | | | [lz4hc] level == 0 means default, not level 1
| * [lz4hc] level == 0 means default, not level 1Nick Terrell2018-01-221-1/+1
|/
* Merge pull request #453 from lz4/clockfixYann Collet2018-01-171-1/+8
|\ | | | | fix #450 : use more restrictive conditions for clock_gettime()
| * use more restrictive conditions for clock_gettime()Yann Collet2018-01-161-1/+8
| |
* | Merge pull request #454 from sunpoet/devYann Collet2018-01-171-2/+2
|\ \ | |/ |/| Change file format back to ASCII (from UTF-8)
| * Change file format back to ASCII (from UTF-8)Po-Chuan Hsieh2018-01-171-2/+2
|/ | | | | | | - Replace U+00A0 by space - Fix build failure of archivers/py-borgbackup in FreeBSD Reference: https://bugs.FreeBSD.org/225235
* added checkTagYann Collet2018-01-154-1/+92
| | | | | checkTag verifies that provided tag and library version match. It's started automatically in circleCI when a new tag is created.
* restored .travisv1.8.1.2Yann Collet2018-01-142-25/+148
|
* lz4frame : removed some intermediate stage from LZ4F_decompress()Yann Collet2018-01-141-16/+6
| | | | | ensure some strange jump cases are not possible (they were already not possible, but static analyzer couldn't understand it).
* Merge branch 'dev' into coverity_scanYann Collet2018-01-144-40/+47
|\
| * minor : try to tell static analyzer that we don't care if fseek() failsYann Collet2018-01-141-1/+1
| | | | | | | | as already explained in comments.
| * ensure a ptr is non-nullYann Collet2018-01-141-0/+9
| | | | | | | | | | with an assert() to help static analyzer understanding this condition.
| * modified formulation for LZ4F_compressBound()Yann Collet2018-01-142-24/+24
| | | | | | | | | | | | previous version used an intentional overflow, which is defined since it uses unsigned type, but static analyzer complain about it.
| * programs/datagen : attempt to please static analyzerYann Collet2018-01-141-15/+12
| | | | | | | | | | with an assert() to reduce false positive
| * lz4io: fixed minor ressource leakYann Collet2018-01-141-0/+1
| |
* | revert project nameYann Collet2018-01-141-1/+1
| |
* | minor name updateYann Collet2018-01-141-1/+1
| |
* | Merge branch 'master' into coverity_scanYann Collet2018-01-1465-3150/+5623
|\ \
| * \ Merge pull request #449 from lz4/devYann Collet2018-01-147-30/+43
| |\ \ | | |/ | | | v1.8.1.2
| | * update man pageYann Collet2018-01-141-1/+4
| | |
| | * nicer console message for `make clean`Yann Collet2018-01-143-15/+20
| | |
| | * updated manuals to v1.8.1Yann Collet2018-01-141-2/+2
| | |
| | * Merge pull request #448 from sunpoet/devYann Collet2018-01-141-1/+1
| | |\ | | | | | | | | Fix lz4 version
| | | * Fix lz4 versionPo-Chuan Hsieh2018-01-131-1/+1
| | |/
| | * updated LZ4F_decompress() documentationYann Collet2018-01-131-11/+16
| | |
| * | Merge pull request #446 from lz4/devYann Collet2018-01-1347-1267/+1620
| |\ \ | | |/ | | | LZ4 v1.8.1
| | * updated NEWS for v1.8.1v1.8.1Yann Collet2018-01-121-1/+4
| | |
| | * Merge pull request #442 from terrelln/441Yann Collet2018-01-102-8/+18
| | |\ | | | | | | | | [lz4io] Fix decompression file stat with --rm
| | | * [lz4io] Refuse to set file stat for non-regular filesNick Terrell2018-01-051-0/+6
| | | |
| | | * [lz4io] Fix decompression file stat with --rmNick Terrell2018-01-051-8/+12
| | | |
| | * | Merge pull request #443 from terrelln/440Yann Collet2018-01-101-2/+4
| | |\ \ | | | | | | | | | | [lz4f] Skip memcpy() on empty dictionary
| | | * | [lz4f] Skip memcpy() on empty dictionaryNick Terrell2018-01-051-2/+4
| | | |/
| | * | Merge pull request #444 from felixhandte/publish-static-functionsYann Collet2018-01-101-16/+27
| | |\ \ | | | | | | | | | | Add Option to Make lz4frame_static.h Functions Visible in Shared Objects
| | | * | Add Option to Make lz4frame_static.h Functions Visible in Shared ObjectsW. Felix Handte2018-01-081-16/+27
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some contexts, *cough*like at facebook*cough*, dynamic linking is used in contexts which aren't truly dynamic. That is, the guarantee is maintained that a program will only ever execute against the library version it was compiled to interact with. For those situations, introduce a compile-time flag that overrides hiding these unstable APIs in shared objects.
| | * | Merge pull request #434 from lz4/patternYann Collet2018-01-062-8/+17
| | |\ \ | | | | | | | | | | conditional pattern analysis
| | | * | conditional pattern analysisYann Collet2017-12-222-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pattern analysis (currently limited to long ranges of identical bytes) is actually detrimental to performance when `nbSearches` is low. Reason is : `nbSearches` provides a built-in protection for these cases. The problem with patterns is that they dramatically increase the number of candidates to visit. But with a low nbSearches, the match finder just aborts early. In such cases, pattern analysis adds some complexity without reducing total nb of candidates. It actually increases compression ratio a little bit, by filtering only "good" candidates, but at a measurable speed cost, so it's not a good trade-off. This patch makes pattern analysis optional. It's enabled for levels 8+ only.
| | * | | Merge pull request #435 from lz4/destSizeYann Collet2018-01-064-63/+91
| | |\ \ \ | | | |_|/ | | |/| | lz4opt is now compatible with _destSize variant