summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lz4 & lz4hc : added capability to allocate state & stream state with custom ↵yann.collet.73@gmail.com2013-12-3015-5487/+5710
| | | | | | | | | | | | | allocator (issue 99) fuzzer & fullbench : updated to test new functions man : documented -l command (Legacy format, for Linux kernel compression) (issue 102) cmake : improved version by Mika Attila, building programs and libraries (issue 100) xxHash : updated to r33 Makefile : clean also delete local package .tar.gz git-svn-id: https://lz4.googlecode.com/svn/trunk@110 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* lz4.c : corrected issue 98 within LZ4_compress_limitedOutput()yann.collet.73@gmail.com2013-12-036-16/+26
| | | | | | Makefile : can specify version number git-svn-id: https://lz4.googlecode.com/svn/trunk@109 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* lz4.c : corrected compression efficiency issue 97 in 64-bits chained mode ↵yann.collet.73@gmail.com2013-11-024-14/+24
| | | | | | (-BD) for streams > 4 GB (thanks Roman Strashkin for reporting) git-svn-id: https://lz4.googlecode.com/svn/trunk@108 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Makefile : support DESTDIR for staged installs. Thanks Jorge Aparicio.yann.collet.73@gmail.com2013-10-218-28/+48
| | | | | | | | | | | | | | | | Makefile : make install installs both lz4 and lz4c (Jorge Aparicio) Makefile : removed -Wno-implicit-declaration compilation switch lz4cli.c : include <stduni.h> for isatty() (Luca Barbato) lz4.h : introduced LZ4_MAX_INPUT_SIZE constant (Shay Green) lz4.h : LZ4_compressBound() : unified macro and inline definitions (Shay Green) lz4.h : LZ4_decompressSafe_partial() : clarify comments (Shay Green) lz4.c : LZ4_compress() verify input size condition (Shay Green) bench.c : corrected a bug in free memory size evaluation cmake : install into bin/ directory (Richard Yao) cmake : check for just C compiler (Elan Ruusamae) git-svn-id: https://lz4.googlecode.com/svn/trunk@107 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* git-svn-id: https://lz4.googlecode.com/svn/trunk@106 ↵yann.collet.73@gmail.com2013-10-014-17/+32
| | | | 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Makefile : New install script and man page, contributed by Prasad Pandityann.collet.73@gmail.com2013-09-258-121/+607
| | | | | | | | | lz4cli.c : Minor modifications, for easier extensibility COPYING : added license file LZ4_Streaming_Format.odt : modified file name to remove white space characters exe : .exe suffix now properly added only for Windows target git-svn-id: https://lz4.googlecode.com/svn/trunk@105 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* quickfix : removed #include "lz4stream.h" from lz4cli.cyann.collet.73@gmail.com2013-09-091-2/+1
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@104 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* New command line utility, lz4 (notice the missing final 'c'), with ↵yann.collet.73@gmail.com2013-09-098-197/+317
| | | | | | | | | | | | | gzip-style arguments (issue 83) lz4c still there, supports additional gzip arguments, but also keep compatibility with legacy commands lz4 (& lz4c) display version number Fix : Sun Studio : compatible #pragma directive (issue 81) Fix : compatible with Objective-C (iOS) (issue 79) Fix : minor warnings using Visual Studio x64 (issue 80) Changed : source file lz4c.c renamed lz4cli.c git-svn-id: https://lz4.googlecode.com/svn/trunk@103 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* LZ4 compression supports block dependency (argument -BD within lz4c command ↵yann.collet.73@gmail.com2013-08-166-40/+204
| | | | | | | | | line) fullbench : added bench of LZ4_compress_continue(), LZ4_compress_limitedOutput_continue(), LZ4_compressHC_continue() and LZ4_compressHC_limitedOutput_continue() git-svn-id: https://lz4.googlecode.com/svn/trunk@102 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Removed dependency to "lz4_encoder.h" and "lz4hc_encoder.h"yann.collet.73@gmail.com2013-08-1210-957/+665
| | | | | | | | | | | | | Improved speed of LZ4_decompress_fast() with GCC Improved speed of LZ4_decompress_safe() for 32-bits Made the fast LZ4 compression compatible with low-memory systems (buffer address < 64K). Thanks Francois Gretief for report and suggestion. Makefile : added fuzzer32 Makefile : added fullbench32 fullbench : added ability to select one specific function to benchmark lz4.c : copy macros follow memcpy() arguments convention Small coding style modifications, hinted by cppCheck. git-svn-id: https://lz4.googlecode.com/svn/trunk@101 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Bugfix releaseyann.collet.73@gmail.com2013-08-072-1/+5
| | | | | | | Corrected a bug into the compact XXH32() function, which affects Block Checksum results. Update is recommended if you use Block Checksum with lz4c. (Note : block checksum is disabled by default). Thanks Adrien Grand for detailed bug tracking and fixing. Corrected a bug affected Heapmode version of LZ4_compress() (Note : heapmode is disabled by default) git-svn-id: https://lz4.googlecode.com/svn/trunk@100 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* lz4c : made display and arguments more compatible with gzip, for easier ↵yann.collet.73@gmail.com2013-07-2710-322/+392
| | | | | | | | | | | | | | | integration with tar (patch by Yaakov Selkowitz) Correction : large files support on 32-bits unix (reported by Karthik Rajeswaran) lz4c : reduce the amount of displayed information in default mode; introduce a verbose mode lz4c : changed help message Updated xxHash to r31 Made bench.c compatible with tcc Corrected : a few minor warnings found by CppCheck, as suggested by Brian White lz4.c : Pushed BIG_ENDIAN_NATIVE_BUT_INCOMPATIBLE farther in the code, since it is reported as providing little benefit Corrected : minor 64K input condition, detected by Mat Hostetter git-svn-id: https://lz4.googlecode.com/svn/trunk@99 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected issue 70, 'pack' instruction on IBM AIXyann.collet.73@gmail.com2013-07-019-50/+84
| | | | | | | | | | Added : fullbench : can select compression tests or decompression tests Removed extern inline, for compatibility with GNU89, as reported by Maciej Adamczyk lz4.c : made forceinline more explicit Decompression : corrected corner case behaviors (inputSize == 0 and outputSize == 0), thanks Adrien for detailed suggestions Makefile : Removed -march=native parameter, due to incompatibility with some GCC versions git-svn-id: https://lz4.googlecode.com/svn/trunk@98 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* lz4.c no longer depends on lz4_decoder.h (removed)yann.collet.73@gmail.com2013-06-1010-433/+1021
| | | | | | | | | | | Decompression speed improved under GCC Improved speed of LZ4_decompress_safe_partial() Added new utility : fullbench Modified x64 detection macro, as suggested by David Karner Improved Fuzzer tool Updated xxHash to r30 git-svn-id: https://lz4.googlecode.com/svn/trunk@97 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* New experimental mode : compress blocks using data from previous blocks ↵yann.collet.73@gmail.com2013-05-278-121/+415
| | | | | | | | | | | (option -BD) (limitation : -hc mode only) Changed deprecated function names to "static", in order to avoid duplicate definition. Thanks Maciej Adamczyk for reporting. Changed a few command line options Prettify help text git-svn-id: https://lz4.googlecode.com/svn/trunk@96 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* lz4c : automatic output name when decoding a *.lz4 file, as requested by ↵yann.collet.73@gmail.com2013-05-178-534/+593
| | | | | | | | | | | | | | | Peter Humphreys Cleaner C99 detection, thanks to Elad Modified Basic Types, as recommended by Wayne Scott Simplified compression function Corrected : warning on missing #undef in lz4hc, thanks Arseny Kapoulkine Modified length loops as suggested by Wouter Vermaelen Modified pragma pack directive for older versions of GCC, as reported by Peter Costello Updated xxHash to r29 Indent lz4hc.c with spaces git-svn-id: https://lz4.googlecode.com/svn/trunk@95 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* - New naming : LZ4_decompress_safe() and LZ4_decompress_fast()yann.collet.73@gmail.com2013-04-2610-914/+1242
| | | | | | | | | | - New function : LZ4_decompress_safe_partial(), to decompress just enough data within a compressed block, saving CPU cycles - New source files : lz4_decoder.h, lz4_encoder.h, lz4hc_encoder.h - Improved speed of LZ4_decompress_fast() - Improved speed for compression of small blocks < 64KB - Improved speed for HC compression git-svn-id: https://lz4.googlecode.com/svn/trunk@94 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Added : function LZ4_compressHC_limitedOutput()yann.collet.73@gmail.com2013-04-1810-66/+153
| | | | | | | | Updated : LZ4 Streaming Format.odt, to version 1.4 New : LZ4c now supports Stream Checksum (default) and Skippable chunks Updated : Fuzzer, testing LZ4_compressHC_limitedOutput() git-svn-id: https://lz4.googlecode.com/svn/trunk@93 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Added : LZ4 Streaming Format specification (v1.3)yann.collet.73@gmail.com2013-04-1316-561/+1371
| | | | | | | | | | Added : LZ4c command-line utility, supporting the new streaming format Added : xxhash library Removed : lz4demo is now replaced by lz4.c Removed : a few level 4 warnings (issue 64) Updated : makefiles git-svn-id: https://lz4.googlecode.com/svn/trunk@92 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Updated : cmake/CMakeLists.txt, by Nobuhiro Iwamatsuyann.collet.73@gmail.com2013-03-307-370/+437
| | | | | | | | | Updated : cmake/pack/CMakeLists.txt, by Dmitry Cherepanov lz4demo : CLI accept aggregated commands lz4demo : detect overwrite output lz4demo : new commands options (-hc, -y) git-svn-id: https://lz4.googlecode.com/svn/trunk@91 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* - New cmake file, by Nobuhiro Iwamatsu, which can also produce shared and ↵yann.collet.73@gmail.com2013-03-026-70/+184
| | | | | | | | | | static libraries. - Improved decoding speed, even more for 64-bits, and "safe" version - Slight speed increase for LZ4-HC - Pushed a useless parameter down the list in lz4.c git-svn-id: https://lz4.googlecode.com/svn/trunk@90 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected issue 59 in lz4hc.c, reported by Masafumi Kiribayashiyann.collet.73@gmail.com2013-02-194-25/+109
| | | | | | | Corrected issue 60 in lz4.h, reported by Takayuki Matsuoka Added : a cmake/pack installer, by Dmitry Cherepanov git-svn-id: https://lz4.googlecode.com/svn/trunk@89 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* LZ4HC : compression speed improved under Visualyann.collet.73@gmail.com2013-01-084-352/+414
| | | | | | Bench mode : option to pause at the end git-svn-id: https://lz4.googlecode.com/svn/trunk@88 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* LZ4_HC is now compatible with CPU requiring aligned memory accessesyann.collet.73@gmail.com2012-12-221-3/+3
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@87 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Improved endianess detectionyann.collet.73@gmail.com2012-12-214-18/+69
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@86 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Improved decoding speed, thanks to several contributions from Ludvig ↵yann.collet.73@gmail.com2012-12-111-30/+33
| | | | | | | | Strigeus (issues 49, 50 & 54) Removed unnecessary assignment within LZ4_uncompress_unknownSize() (reported by Shivram) git-svn-id: https://lz4.googlecode.com/svn/trunk@85 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* LZ4 HC : extended detection window. Thanks to Adrien Grand.yann.collet.73@gmail.com2012-11-306-22/+80
| | | | | | | | | Fuzzer : more tests cases lz4demo : detect write errors. Thanks to Dima Tisnek bench.c : compatibility with Solaris 64. Thanks to Thorbjørn Willoch LZ4_compressBound() : now both in inline function and macro format. Thanks to Jacob Gorm Hansen git-svn-id: https://lz4.googlecode.com/svn/trunk@84 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected a bug into LZ4_uncompress_unknownOutputSize() introduced in r82yann.collet.73@gmail.com2012-11-051-17/+16
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@83 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected issue 38 : bench.c compilation for Sun Solaris 32 bitsyann.collet.73@gmail.com2012-11-033-9/+14
| | | | | | | Corrected issue 40 : Detect early ending of compressed stream. Thanks Adrian Grand. Corrected issue 41 : minor comment editing on lz4.h git-svn-id: https://lz4.googlecode.com/svn/trunk@82 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected issue 39 : bench.c for NetBSD. Thanks to Thomas Klausner.yann.collet.73@gmail.com2012-10-271-8/+32
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@81 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected Issue 34 (restrict)yann.collet.73@gmail.com2012-10-262-22/+15
| | | | | | minor macro renaming (fuzzer.c) git-svn-id: https://lz4.googlecode.com/svn/trunk@80 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* - Corrected issue 31 : LZ4 correctly accepts compressing data when the ↵yann.collet.73@gmail.com2012-10-243-20/+188
| | | | | | | | | | output buffer has exactly the required size (it was a bit over-cautious in previous version). - Added : a fuzzer tool Thanks to Andrew Mahone, for contribution on both points git-svn-id: https://lz4.googlecode.com/svn/trunk@79 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Correct issue 36 on LZ4_uncompress_unknownOutputSize(). Thanks to Clayton ↵yann.collet.73@gmail.com2012-10-162-460/+460
| | | | | | | | Stangeland and Maciej Adamczyk for notifying. Converted tabs to space git-svn-id: https://lz4.googlecode.com/svn/trunk@78 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Correction : LZ4_compress_limitedOutput() write too far erroryann.collet.73@gmail.com2012-08-221-0/+2
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@77 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* changed some macro names in lz4hc to avoid duplicate definition on NetBSDyann.collet.73@gmail.com2012-08-141-4/+4
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@76 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Fixed Visual 2005 issues (warning/linking)yann.collet.73@gmail.com2012-08-134-37/+49
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@75 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* LZ4.c : changed inline to "static inline" to comply with limitations from ↵yann.collet.73@gmail.com2012-08-081-4/+4
| | | | | | GCC/LLVM combination under OS-X. git-svn-id: https://lz4.googlecode.com/svn/trunk@74 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Improved speed under Visualyann.collet.73@gmail.com2012-08-032-1/+39
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@73 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Fixed : small compression speed hit on GCC v4.5 introduced by r71yann.collet.73@gmail.com2012-08-013-8/+14
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@72 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Added : function LZ4_compress_limitedOutput()yann.collet.73@gmail.com2012-07-282-63/+57
| | | | | | | Removed : functions with explicit *ctx management (LZ4_compressCtx & LZ4_compress64kCtx). Functions are still present in the .c Changed : LZ4_compressBound() now a macro git-svn-id: https://lz4.googlecode.com/svn/trunk@71 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* lz4.c : changed a tuning parameter name to MEMORY_USAGE, to better reflect ↵yann.collet.73@gmail.com2012-07-242-10/+12
| | | | | | | | | its impact Makefile : default produces native binary, all produce native & 32-bits binaries git-svn-id: https://lz4.googlecode.com/svn/trunk@70 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Changed Makefile default setting to generate only native binary.yann.collet.73@gmail.com2012-07-181-6/+6
| | | | | | | | The 32-bits version can still be generated (on 64-bits systems) using : make lz4demo32 git-svn-id: https://lz4.googlecode.com/svn/trunk@69 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* git-svn-id: https://lz4.googlecode.com/svn/trunk@68 ↵yann.collet.73@gmail.com2012-06-161-1/+1
| | | | 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Update CMake file to handle lz4hc. Thanks to Mark Wotton for notification ↵yann.collet.73@gmail.com2012-06-081-1/+1
| | | | | | and correction git-svn-id: https://lz4.googlecode.com/svn/trunk@67 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Added : LZ4 HC : Now integrated into main trunk.yann.collet.73@gmail.com2012-05-137-20/+768
| | | | | | LZ4_HC license moved to BSD git-svn-id: https://lz4.googlecode.com/svn/trunk@66 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Added : LZ4Demo : can handle appended compressed streams.yann.collet.73@gmail.com2012-05-122-36/+28
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@65 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* minor : Force Software-bit-count for WinCE environment under Visual. Thanks ↵yann.collet.73@gmail.com2012-05-092-4/+10
| | | | | | Bayang for Reporting. git-svn-id: https://lz4.googlecode.com/svn/trunk@64 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected : linking stage of Visual 2005 in Debug mode (issue 16)yann.collet.73@gmail.com2012-05-072-53/+62
| | | | | | Minor changes in comments git-svn-id: https://lz4.googlecode.com/svn/trunk@63 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Added : cmake configuration file, from Dmitry Cherepanovyann.collet.73@gmail.com2012-04-085-57/+109
| | | | git-svn-id: https://lz4.googlecode.com/svn/trunk@62 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
* Corrected : minor : changed a macro name to avoid duplicate within NetBSD. ↵yann.collet.73@gmail.com2012-04-032-5/+6
| | | | | | Thanks Gray for reporting (Issue 15) git-svn-id: https://lz4.googlecode.com/svn/trunk@61 650e7d94-2a16-8b24-b05c-7c0b3f6821cd