platform/upstream/lz4.git
12 years agocode refactoring
yann.collet.73@gmail.com [Thu, 6 Oct 2011 11:24:04 +0000 (11:24 +0000)]
code refactoring

git-svn-id: https://lz4.googlecode.com/svn/trunk@36 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years ago- Improved compression ratio
yann.collet.73@gmail.com [Thu, 29 Sep 2011 20:28:37 +0000 (20:28 +0000)]
- Improved compression ratio
- Added special mode for small packet (<=64KB) which improves both compression and speed : LZ4_compress64kCtx()

git-svn-id: https://lz4.googlecode.com/svn/trunk@35 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoLZ4Demo : corrected a bug in 64 bits mode
yann.collet.73@gmail.com [Tue, 27 Sep 2011 20:47:20 +0000 (20:47 +0000)]
LZ4Demo : corrected a bug in 64 bits mode

git-svn-id: https://lz4.googlecode.com/svn/trunk@34 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoNew : ARM Validated code, thanks to Vlad Grachov.
yann.collet.73@gmail.com [Tue, 27 Sep 2011 11:59:58 +0000 (11:59 +0000)]
New : ARM Validated code, thanks to Vlad Grachov.
LZ4Demo : compress/decompress output time

git-svn-id: https://lz4.googlecode.com/svn/trunk@33 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoModified a few comments
yann.collet.73@gmail.com [Mon, 26 Sep 2011 21:15:24 +0000 (21:15 +0000)]
Modified a few comments

git-svn-id: https://lz4.googlecode.com/svn/trunk@32 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoupdated LZ4_uncompress_unknownOutputSize()
yann.collet.73@gmail.com [Mon, 26 Sep 2011 21:04:03 +0000 (21:04 +0000)]
updated LZ4_uncompress_unknownOutputSize()

git-svn-id: https://lz4.googlecode.com/svn/trunk@31 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agorenamed : main.c into lz4demo.c
yann.collet.73@gmail.com [Sun, 25 Sep 2011 22:47:31 +0000 (22:47 +0000)]
renamed : main.c into lz4demo.c
changed Makefile accordingly

git-svn-id: https://lz4.googlecode.com/svn/trunk@30 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCLI : added test mode
yann.collet.73@gmail.com [Sun, 25 Sep 2011 21:34:35 +0000 (21:34 +0000)]
CLI : added test mode
CLI : corrected writing to NULL within Linux
Minor : several comments were updated

git-svn-id: https://lz4.googlecode.com/svn/trunk@29 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCLI : Added : capability to compress/decompress to NULL (useful for testings)
yann.collet.73@gmail.com [Sun, 25 Sep 2011 20:11:05 +0000 (20:11 +0000)]
CLI : Added : capability to compress/decompress to NULL (useful for testings)
Corrected small bug into LZ4_uncompress(). Update is recommended.

git-svn-id: https://lz4.googlecode.com/svn/trunk@28 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoSmall compression speed improvement
yann.collet.73@gmail.com [Fri, 23 Sep 2011 22:27:08 +0000 (22:27 +0000)]
Small compression speed improvement
Decoding speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@27 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected issue 3 in compression function. Update is recommended.
yann.collet.73@gmail.com [Thu, 22 Sep 2011 13:11:17 +0000 (13:11 +0000)]
Corrected issue 3 in compression function. Update is recommended.

git-svn-id: https://lz4.googlecode.com/svn/trunk@26 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agominor code refactoring
yann.collet.73@gmail.com [Wed, 21 Sep 2011 11:45:00 +0000 (11:45 +0000)]
minor code refactoring
removed harmless warning under gcc for linux

git-svn-id: https://lz4.googlecode.com/svn/trunk@25 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoSmall compression speed improvement
yann.collet.73@gmail.com [Tue, 20 Sep 2011 10:01:23 +0000 (10:01 +0000)]
Small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@24 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoremoved an harmless warning under gcc for linux
yann.collet.73@gmail.com [Sun, 18 Sep 2011 10:50:12 +0000 (10:50 +0000)]
removed an harmless warning under gcc for linux

git-svn-id: https://lz4.googlecode.com/svn/trunk@23 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agosmall compression speed improvement
yann.collet.73@gmail.com [Thu, 15 Sep 2011 21:37:09 +0000 (21:37 +0000)]
small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@22 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCLI : corrected : small allocation error in case of not compressible input
yann.collet.73@gmail.com [Thu, 15 Sep 2011 20:20:39 +0000 (20:20 +0000)]
CLI : corrected : small allocation error in case of not compressible input

git-svn-id: https://lz4.googlecode.com/svn/trunk@21 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected : a bug in compression function which could make it read beyond input buffe...
yann.collet.73@gmail.com [Thu, 15 Sep 2011 19:14:57 +0000 (19:14 +0000)]
Corrected : a bug in compression function which could make it read beyond input buffer in some circumstances (issue 2).
Many thanks for the detailed bug report.

git-svn-id: https://lz4.googlecode.com/svn/trunk@20 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agosmall compression speed improvement
yann.collet.73@gmail.com [Tue, 13 Sep 2011 22:55:49 +0000 (22:55 +0000)]
small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@19 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agosmall compression speed improvement
yann.collet.73@gmail.com [Tue, 13 Sep 2011 18:19:42 +0000 (18:19 +0000)]
small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@18 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoUpdated : license text (main.c)
yann.collet.73@gmail.com [Tue, 13 Sep 2011 13:30:45 +0000 (13:30 +0000)]
Updated : license text (main.c)

git-svn-id: https://lz4.googlecode.com/svn/trunk@17 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoSmall compression speed improvement
yann.collet.73@gmail.com [Tue, 13 Sep 2011 12:01:11 +0000 (12:01 +0000)]
Small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@16 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected : CLI : Pipe mode in Windows (note : was already properly working for Linux)
yann.collet.73@gmail.com [Sat, 3 Sep 2011 16:06:26 +0000 (16:06 +0000)]
Corrected : CLI : Pipe mode in Windows (note : was already properly working for Linux)

git-svn-id: https://lz4.googlecode.com/svn/trunk@15 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected a (rare) bug in compression function
yann.collet.73@gmail.com [Sat, 3 Sep 2011 12:43:13 +0000 (12:43 +0000)]
Corrected a (rare) bug in compression function

git-svn-id: https://lz4.googlecode.com/svn/trunk@14 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoLZ4Demo now supports Pipe mode (inspired by Huan Truong mod)
yann.collet.73@gmail.com [Tue, 30 Aug 2011 22:35:09 +0000 (22:35 +0000)]
LZ4Demo now supports Pipe mode (inspired by Huan Truong mod)

git-svn-id: https://lz4.googlecode.com/svn/trunk@13 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoRemoved LZ4_decode() function code.
yann.collet.73@gmail.com [Sun, 21 Aug 2011 11:42:08 +0000 (11:42 +0000)]
Removed LZ4_decode() function code.
If you need to provide "isize" instead of "osize" to the decoder, please use LZ4_uncompress_unknownOutputSize(), which is safer.

git-svn-id: https://lz4.googlecode.com/svn/trunk@12 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoImproved compression and decompression speed under GCC compiler
yann.collet.73@gmail.com [Tue, 7 Jun 2011 17:57:25 +0000 (17:57 +0000)]
Improved compression and decompression speed under GCC compiler

git-svn-id: https://lz4.googlecode.com/svn/trunk@11 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoGreatly improved compression and decompression speed, at the expense of some compress...
yann.collet.73@gmail.com [Sun, 5 Jun 2011 21:23:42 +0000 (21:23 +0000)]
Greatly improved compression and decompression speed, at the expense of some compression ratio.
Most of the change is due to a modification in the performance parameter (HASH_LOG) now set to 12, to match Intel L1 cache processors.
You can change it back to 17 to get back previous compression ratio.
AMD users are invited to try HASH_LOG = 13, since AMD L1 cache is twice larger.

git-svn-id: https://lz4.googlecode.com/svn/trunk@10 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoNew function : LZ4_uncompress : secure version which is safe against buffer overflow...
yann.collet.73@gmail.com [Sat, 4 Jun 2011 17:15:43 +0000 (17:15 +0000)]
New function : LZ4_uncompress : secure version which is safe against buffer overflow attacks
New function : LZ4_uncompress_unknownOutputSize : secure but slower version which also guess the size of data to be decoded
The demo file compression program (main.c) is updated to use these new functions
LZ4_decode is still supported but in deprecated status, due to its vulnerability to malicious buffer overflow scenario

git-svn-id: https://lz4.googlecode.com/svn/trunk@9 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrected : demo program : "/" no longer a valid option trigger, in order to allow...
yann.collet.73@gmail.com [Fri, 27 May 2011 12:18:22 +0000 (12:18 +0000)]
Corrected : demo program : "/" no longer a valid option trigger, in order to allow absolute path on *nix systems.
Changed (minor) : demo program : differentiate error numbers between compression et decoding routines.

git-svn-id: https://lz4.googlecode.com/svn/trunk@8 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoImproved : safe type, for linux x64 (amd64) compatibility (Thanks to Erik Andersen)
yann.collet.73@gmail.com [Wed, 25 May 2011 22:25:57 +0000 (22:25 +0000)]
Improved : safe type, for linux x64 (amd64) compatibility (Thanks to Erik Andersen)
Checked : OS X compatibility (Thanks Abhinav)
Corrected : Explicit unsigned constant for non C90-compliant C compilers (Thanks to Erik Andersen)
Changed : lowercase filename for case-sensitive file systems (like linux) (Thanks Abhinav & Erik)
Added : Makefile, for gcc (Thanks Abhinav & Erik)

git-svn-id: https://lz4.googlecode.com/svn/trunk@7 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoAdded some comments for better clarity
yann.collet.73@gmail.com [Sat, 21 May 2011 07:18:49 +0000 (07:18 +0000)]
Added some comments for better clarity

git-svn-id: https://lz4.googlecode.com/svn/trunk@6 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrection : enforced typecasting for compatibility with gcc on *nix systems.
yann.collet.73@gmail.com [Fri, 20 May 2011 19:54:28 +0000 (19:54 +0000)]
Correction : enforced typecasting for compatibility with gcc on *nix systems.
Thanks to Abhinav Mehta for reporting the issue.

git-svn-id: https://lz4.googlecode.com/svn/trunk@5 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoStrict end-of-buffer checks
yann.collet.73@gmail.com [Tue, 26 Apr 2011 23:49:24 +0000 (23:49 +0000)]
Strict end-of-buffer checks
License changed to BSD

git-svn-id: https://lz4.googlecode.com/svn/trunk@4 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoAdded CPP compatibility macro
yann.collet.73@gmail.com [Mon, 25 Apr 2011 08:24:43 +0000 (08:24 +0000)]
Added CPP compatibility macro

git-svn-id: https://lz4.googlecode.com/svn/trunk@3 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agogit-svn-id: https://lz4.googlecode.com/svn/trunk@2 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
yann.collet.73@gmail.com [Sun, 24 Apr 2011 14:16:00 +0000 (14:16 +0000)]
git-svn-id: https://lz4.googlecode.com/svn/trunk@2 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoInitial directory structure.
(no author) [Tue, 12 Apr 2011 11:36:16 +0000 (11:36 +0000)]
Initial directory structure.

git-svn-id: https://lz4.googlecode.com/svn/trunk@1 650e7d94-2a16-8b24-b05c-7c0b3f6821cd