platform/upstream/lz4.git
10 years agoFixed : compilation errors using Visual 2012
Yann Collet [Tue, 20 May 2014 00:53:48 +0000 (01:53 +0100)]
Fixed : compilation errors using Visual 2012

10 years agoFirst version of Block Streaming API : LZ4_compress_usingDict()
Yann Collet [Mon, 19 May 2014 23:40:29 +0000 (00:40 +0100)]
First version of Block Streaming API : LZ4_compress_usingDict()

10 years agochanged naming convention to *_usingDict()
Yann Collet [Sun, 4 May 2014 12:26:05 +0000 (13:26 +0100)]
changed naming convention to *_usingDict()

10 years agoAdded : *_withDict to fullbench
Yann Collet [Sat, 3 May 2014 18:56:08 +0000 (19:56 +0100)]
Added : *_withDict to fullbench

10 years agoTravis status for both master & dev branches, thanks to Takayuki Matsuoka
Yann Collet [Sat, 3 May 2014 01:49:14 +0000 (02:49 +0100)]
Travis status for both master & dev branches, thanks to Takayuki Matsuoka

10 years agoMerge pull request #4 from t-mat/travis-ci-build-matrix
Cyan4973 [Thu, 1 May 2014 16:03:08 +0000 (18:03 +0200)]
Merge pull request #4 from t-mat/travis-ci-build-matrix

Add Travis CI Build Matrix to decrease testing time

10 years agoAdd Travis build status badge
Takayuki MATSUOKA [Wed, 30 Apr 2014 15:59:08 +0000 (00:59 +0900)]
Add Travis build status badge

  NOTE : This URL indicate `dev`-branch status.

10 years agoAdd Travis CI's Build Matrix
Takayuki MATSUOKA [Wed, 30 Apr 2014 15:29:13 +0000 (00:29 +0900)]
Add Travis CI's Build Matrix

See also : http://docs.travis-ci.com/user/build-configuration/#The-Build-Matrix

10 years agofuzzer : added compressibility parameter (-p#)
Yann Collet [Tue, 29 Apr 2014 22:44:49 +0000 (23:44 +0100)]
fuzzer : added compressibility parameter (-p#)

10 years agofixed : allocation within fuzzer
Yann Collet [Tue, 29 Apr 2014 20:39:08 +0000 (21:39 +0100)]
fixed : allocation within fuzzer
new command line options for fuzzer (see -h)

10 years agomodified : rand generator
Yann Collet [Mon, 28 Apr 2014 22:49:31 +0000 (23:49 +0100)]
modified : rand generator

10 years agofixed : read error into fuzzer
Yann Collet [Mon, 28 Apr 2014 22:17:49 +0000 (23:17 +0100)]
fixed : read error into fuzzer

10 years agoIntroduce "External Dictionary" de/compression API
Yann Collet [Mon, 28 Apr 2014 20:45:35 +0000 (21:45 +0100)]
Introduce "External Dictionary" de/compression API

10 years agofuzzer title shows 32/64 bits mode
Yann Collet [Thu, 24 Apr 2014 09:12:58 +0000 (10:12 +0100)]
fuzzer title shows 32/64 bits mode

10 years agore-order travis tests
Yann Collet [Tue, 22 Apr 2014 23:54:32 +0000 (00:54 +0100)]
re-order travis tests
fix : remove man pages on uninstall

10 years agoMerge pull request #3 from Cyan4973/beta
Cyan4973 [Tue, 22 Apr 2014 22:45:28 +0000 (00:45 +0200)]
Merge pull request #3 from Cyan4973/beta

Beta

10 years agoupdated NEWS
Yann Collet [Tue, 22 Apr 2014 22:38:39 +0000 (00:38 +0200)]
updated NEWS

10 years agoMerge pull request #2 from t-mat/travis-ci
Cyan4973 [Wed, 16 Apr 2014 23:43:08 +0000 (01:43 +0200)]
Merge pull request #2 from t-mat/travis-ci

Add automated testing by Travis CI

10 years agoAdd build target 'test'
Takayuki MATSUOKA [Wed, 16 Apr 2014 14:26:15 +0000 (23:26 +0900)]
Add build target 'test'

10 years agoAdd command-line switch to support Travis-CI
Takayuki MATSUOKA [Wed, 16 Apr 2014 14:25:56 +0000 (23:25 +0900)]
Add command-line switch to support Travis-CI

Add command-line switch '--no-prompt' to fullbench and fuzzer.
'--no-prompt' enables :

 - Throtting stdout to satisfy Travis-CI's stdout limit (10MB).
 - Prevent Travis-CI's build timeouts and ignore pause by getchar().
   http://docs.travis-ci.com/user/build-configuration/#Build-Timeouts

10 years agoAdd .travis.yml
Takayuki MATSUOKA [Wed, 16 Apr 2014 13:25:18 +0000 (22:25 +0900)]
Add .travis.yml

.travis.yml in this commit means

 (1) Language is C.
 (2) Compiler is 'gcc'
 (3) Before testing, Travis-CI VM install 'gcc-multilib' for 32bit executables.
 (4) Travis-CI invokes 'make test'.

See also :

  Getting started
  http://docs.travis-ci.com/user/getting-started/

  Configuring your build
  http://docs.travis-ci.com/user/build-configuration/

  Building a C Project
  http://docs.travis-ci.com/user/build-configuration/

10 years agoAdded README.md to the list of packaged files
Yann Collet [Tue, 15 Apr 2014 18:43:39 +0000 (20:43 +0200)]
Added README.md to the list of packaged files

10 years agoAdded lz4c & lz4cat man pages
Yann Collet [Tue, 15 Apr 2014 14:47:48 +0000 (16:47 +0200)]
Added lz4c & lz4cat man pages

10 years agoFixed issue 127 & 128
Yann Collet [Tue, 15 Apr 2014 13:03:17 +0000 (15:03 +0200)]
Fixed issue 127 & 128

10 years agoquickfix (issue 124 & 125)
yann.collet.73@gmail.com [Mon, 24 Mar 2014 20:59:20 +0000 (20:59 +0000)]
quickfix (issue 124 & 125)

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

10 years agoAdded : lz4cat utility for posx systems
yann.collet.73@gmail.com [Sun, 23 Mar 2014 11:15:37 +0000 (11:15 +0000)]
Added : lz4cat utility for posx systems
OS-X compatible dynamic library, thanks to Jan Stepien
corrected : relative symbolic link for versioned library

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

10 years agoMakefile : library correctly compiled with -O3 switch (issue 114)
yann.collet.73@gmail.com [Wed, 12 Mar 2014 14:51:59 +0000 (14:51 +0000)]
Makefile : library correctly compiled with -O3 switch (issue 114)
Makefile : library compilation compatible with clang
Makefile : library is versioned and linked (issue 119)
lz4.h : no more static inline prototypes (issue 116)
man : improved header/footer (issue 111)
Makefile : Use system default $(CC) & $(MAKE) variables (issue 112)
xxhash : updated to r34

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

10 years agoLarge decompression speed improvement for GCC 32-bits. Thanks to Valery Croizier !
yann.collet.73@gmail.com [Tue, 4 Feb 2014 14:11:10 +0000 (14:11 +0000)]
Large decompression speed improvement for GCC 32-bits. Thanks to Valery Croizier !
LZ4HC : Compression Level is now a programmable parameter (CLI from 4 to 9)
Separated IO routines from command line (lz4io.c)
Version number into lz4.h (suggested by Francesc Alted)

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

10 years agoquickfix (issue 107 & issue 103)
yann.collet.73@gmail.com [Wed, 8 Jan 2014 18:50:11 +0000 (18:50 +0000)]
quickfix (issue 107 & issue 103)

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

10 years agoMakefile : added capability to install libraries
yann.collet.73@gmail.com [Tue, 7 Jan 2014 18:47:50 +0000 (18:47 +0000)]
Makefile : added capability to install libraries
Modified Directory tree, to better separate libraries from programs.

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

10 years agolz4 & lz4hc : added capability to allocate state & stream state with custom allocator...
yann.collet.73@gmail.com [Mon, 30 Dec 2013 17:16:52 +0000 (17:16 +0000)]
lz4 & lz4hc : added capability to allocate state & stream state with custom 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

10 years agolz4.c : corrected issue 98 within LZ4_compress_limitedOutput()
yann.collet.73@gmail.com [Tue, 3 Dec 2013 15:50:46 +0000 (15:50 +0000)]
lz4.c : corrected issue 98 within LZ4_compress_limitedOutput()
Makefile : can specify version number

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

11 years agolz4.c : corrected compression efficiency issue 97 in 64-bits chained mode (-BD) for...
yann.collet.73@gmail.com [Sat, 2 Nov 2013 12:11:04 +0000 (12:11 +0000)]
lz4.c : corrected compression efficiency issue 97 in 64-bits chained mode (-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

11 years agoMakefile : support DESTDIR for staged installs. Thanks Jorge Aparicio.
yann.collet.73@gmail.com [Mon, 21 Oct 2013 08:03:40 +0000 (08:03 +0000)]
Makefile : support DESTDIR for staged installs. Thanks Jorge Aparicio.
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

11 years agogit-svn-id: https://lz4.googlecode.com/svn/trunk@106 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
yann.collet.73@gmail.com [Tue, 1 Oct 2013 20:32:43 +0000 (20:32 +0000)]
git-svn-id: https://lz4.googlecode.com/svn/trunk@106 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

11 years agoMakefile : New install script and man page, contributed by Prasad Pandit
yann.collet.73@gmail.com [Wed, 25 Sep 2013 09:00:37 +0000 (09:00 +0000)]
Makefile : New install script and man page, contributed by Prasad Pandit
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

11 years agoquickfix : removed #include "lz4stream.h" from lz4cli.c
yann.collet.73@gmail.com [Mon, 9 Sep 2013 11:47:55 +0000 (11:47 +0000)]
quickfix : removed #include "lz4stream.h" from lz4cli.c

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

11 years agoNew command line utility, lz4 (notice the missing final 'c'), with gzip-style argumen...
yann.collet.73@gmail.com [Mon, 9 Sep 2013 09:06:21 +0000 (09:06 +0000)]
New command line utility, lz4 (notice the missing final 'c'), with 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

11 years agoLZ4 compression supports block dependency (argument -BD within lz4c command line)
yann.collet.73@gmail.com [Fri, 16 Aug 2013 10:46:08 +0000 (10:46 +0000)]
LZ4 compression supports block dependency (argument -BD within lz4c command 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

11 years agoRemoved dependency to "lz4_encoder.h" and "lz4hc_encoder.h"
yann.collet.73@gmail.com [Mon, 12 Aug 2013 08:35:52 +0000 (08:35 +0000)]
Removed dependency to "lz4_encoder.h" and "lz4hc_encoder.h"
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

11 years agoBugfix release
yann.collet.73@gmail.com [Wed, 7 Aug 2013 17:14:03 +0000 (17:14 +0000)]
Bugfix release
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

11 years agolz4c : made display and arguments more compatible with gzip, for easier integration...
yann.collet.73@gmail.com [Sat, 27 Jul 2013 11:19:31 +0000 (11:19 +0000)]
lz4c : made display and arguments more compatible with gzip, for easier 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

11 years agoCorrected issue 70, 'pack' instruction on IBM AIX
yann.collet.73@gmail.com [Mon, 1 Jul 2013 07:50:40 +0000 (07:50 +0000)]
Corrected issue 70, 'pack' instruction on IBM AIX
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

11 years agolz4.c no longer depends on lz4_decoder.h (removed)
yann.collet.73@gmail.com [Mon, 10 Jun 2013 17:29:13 +0000 (17:29 +0000)]
lz4.c no longer depends on lz4_decoder.h (removed)
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

11 years agoNew experimental mode : compress blocks using data from previous blocks (option ...
yann.collet.73@gmail.com [Mon, 27 May 2013 13:37:48 +0000 (13:37 +0000)]
New experimental mode : compress blocks using data from previous blocks (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

11 years agolz4c : automatic output name when decoding a *.lz4 file, as requested by Peter Humphreys
yann.collet.73@gmail.com [Fri, 17 May 2013 18:41:32 +0000 (18:41 +0000)]
lz4c : automatic output name when decoding a *.lz4 file, as requested by 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

11 years ago- New naming : LZ4_decompress_safe() and LZ4_decompress_fast()
yann.collet.73@gmail.com [Fri, 26 Apr 2013 14:37:46 +0000 (14:37 +0000)]
- New naming : LZ4_decompress_safe() and LZ4_decompress_fast()
- 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

11 years agoAdded : function LZ4_compressHC_limitedOutput()
yann.collet.73@gmail.com [Thu, 18 Apr 2013 08:53:13 +0000 (08:53 +0000)]
Added : function LZ4_compressHC_limitedOutput()
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

11 years agoAdded : LZ4 Streaming Format specification (v1.3)
yann.collet.73@gmail.com [Sat, 13 Apr 2013 09:31:22 +0000 (09:31 +0000)]
Added : LZ4 Streaming Format specification (v1.3)
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

11 years agoUpdated : cmake/CMakeLists.txt, by Nobuhiro Iwamatsu
yann.collet.73@gmail.com [Sat, 30 Mar 2013 21:11:40 +0000 (21:11 +0000)]
Updated : cmake/CMakeLists.txt, by Nobuhiro Iwamatsu
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

11 years ago- New cmake file, by Nobuhiro Iwamatsu, which can also produce shared and static...
yann.collet.73@gmail.com [Sat, 2 Mar 2013 23:34:21 +0000 (23:34 +0000)]
- New cmake file, by Nobuhiro Iwamatsu, which can also produce shared and 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

11 years agoCorrected issue 59 in lz4hc.c, reported by Masafumi Kiribayashi
yann.collet.73@gmail.com [Tue, 19 Feb 2013 20:52:50 +0000 (20:52 +0000)]
Corrected issue 59 in lz4hc.c, reported by  Masafumi Kiribayashi
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

11 years agoLZ4HC : compression speed improved under Visual
yann.collet.73@gmail.com [Tue, 8 Jan 2013 07:23:07 +0000 (07:23 +0000)]
LZ4HC : compression speed improved under Visual
Bench mode : option to pause at the end

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

11 years agoLZ4_HC is now compatible with CPU requiring aligned memory accesses
yann.collet.73@gmail.com [Sat, 22 Dec 2012 17:56:05 +0000 (17:56 +0000)]
LZ4_HC is now compatible with CPU requiring aligned memory accesses

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

11 years agoImproved endianess detection
yann.collet.73@gmail.com [Fri, 21 Dec 2012 16:49:17 +0000 (16:49 +0000)]
Improved endianess detection

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

11 years agoImproved decoding speed, thanks to several contributions from Ludvig Strigeus (issues...
yann.collet.73@gmail.com [Tue, 11 Dec 2012 01:38:32 +0000 (01:38 +0000)]
Improved decoding speed, thanks to several contributions from Ludvig 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

11 years agoLZ4 HC : extended detection window. Thanks to Adrien Grand.
yann.collet.73@gmail.com [Fri, 30 Nov 2012 13:23:36 +0000 (13:23 +0000)]
LZ4 HC : extended detection window. Thanks to Adrien Grand.
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

12 years agoCorrected a bug into LZ4_uncompress_unknownOutputSize() introduced in r82
yann.collet.73@gmail.com [Mon, 5 Nov 2012 16:55:52 +0000 (16:55 +0000)]
Corrected a bug into LZ4_uncompress_unknownOutputSize() introduced in r82

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

12 years agoCorrected issue 38 : bench.c compilation for Sun Solaris 32 bits
yann.collet.73@gmail.com [Sat, 3 Nov 2012 21:04:19 +0000 (21:04 +0000)]
Corrected issue 38 : bench.c compilation for Sun Solaris 32 bits
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

12 years agoCorrected issue 39 : bench.c for NetBSD. Thanks to Thomas Klausner.
yann.collet.73@gmail.com [Sat, 27 Oct 2012 18:26:58 +0000 (18:26 +0000)]
Corrected issue 39 : bench.c for NetBSD. Thanks to Thomas Klausner.

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

12 years agoCorrected Issue 34 (restrict)
yann.collet.73@gmail.com [Fri, 26 Oct 2012 12:35:31 +0000 (12:35 +0000)]
Corrected Issue 34 (restrict)
minor macro renaming (fuzzer.c)

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

12 years ago- Corrected issue 31 : LZ4 correctly accepts compressing data when the output buffer...
yann.collet.73@gmail.com [Wed, 24 Oct 2012 12:59:19 +0000 (12:59 +0000)]
- Corrected issue 31 : LZ4 correctly accepts compressing data when the 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

12 years agoCorrect issue 36 on LZ4_uncompress_unknownOutputSize(). Thanks to Clayton Stangeland...
yann.collet.73@gmail.com [Tue, 16 Oct 2012 21:50:15 +0000 (21:50 +0000)]
Correct issue 36 on LZ4_uncompress_unknownOutputSize(). Thanks to Clayton 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

12 years agoCorrection : LZ4_compress_limitedOutput() write too far error
yann.collet.73@gmail.com [Wed, 22 Aug 2012 15:59:39 +0000 (15:59 +0000)]
Correction : LZ4_compress_limitedOutput() write too far error

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

12 years agochanged some macro names in lz4hc to avoid duplicate definition on NetBSD
yann.collet.73@gmail.com [Tue, 14 Aug 2012 16:27:47 +0000 (16:27 +0000)]
changed some macro names in lz4hc to avoid duplicate definition on NetBSD

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

12 years agoFixed Visual 2005 issues (warning/linking)
yann.collet.73@gmail.com [Mon, 13 Aug 2012 07:30:58 +0000 (07:30 +0000)]
Fixed Visual 2005 issues (warning/linking)

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

12 years agoLZ4.c : changed inline to "static inline" to comply with limitations from GCC/LLVM...
yann.collet.73@gmail.com [Wed, 8 Aug 2012 13:02:45 +0000 (13:02 +0000)]
LZ4.c : changed inline to "static inline" to comply with limitations from GCC/LLVM combination under OS-X.

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

12 years agoImproved speed under Visual
yann.collet.73@gmail.com [Fri, 3 Aug 2012 14:33:12 +0000 (14:33 +0000)]
Improved speed under Visual

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

12 years agoFixed : small compression speed hit on GCC v4.5 introduced by r71
yann.collet.73@gmail.com [Wed, 1 Aug 2012 23:51:55 +0000 (23:51 +0000)]
Fixed : small compression speed hit on GCC v4.5 introduced by r71

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

12 years agoAdded : function LZ4_compress_limitedOutput()
yann.collet.73@gmail.com [Sat, 28 Jul 2012 13:32:30 +0000 (13:32 +0000)]
Added : function LZ4_compress_limitedOutput()
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

12 years agolz4.c : changed a tuning parameter name to MEMORY_USAGE, to better reflect its impact
yann.collet.73@gmail.com [Tue, 24 Jul 2012 17:12:23 +0000 (17:12 +0000)]
lz4.c : changed a tuning parameter name to MEMORY_USAGE, to better reflect 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

12 years agoChanged Makefile default setting to generate only native binary.
yann.collet.73@gmail.com [Wed, 18 Jul 2012 19:46:57 +0000 (19:46 +0000)]
Changed Makefile default setting to generate only native binary.
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

12 years agogit-svn-id: https://lz4.googlecode.com/svn/trunk@68 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
yann.collet.73@gmail.com [Sat, 16 Jun 2012 00:04:09 +0000 (00:04 +0000)]
git-svn-id: https://lz4.googlecode.com/svn/trunk@68 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoUpdate CMake file to handle lz4hc. Thanks to Mark Wotton for notification and correction
yann.collet.73@gmail.com [Fri, 8 Jun 2012 09:36:33 +0000 (09:36 +0000)]
Update CMake file to handle lz4hc. Thanks to Mark Wotton for notification and correction

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

12 years agoAdded : LZ4 HC : Now integrated into main trunk.
yann.collet.73@gmail.com [Sun, 13 May 2012 17:59:10 +0000 (17:59 +0000)]
Added : LZ4 HC : Now integrated into main trunk.
LZ4_HC license moved to BSD

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

12 years agoAdded : LZ4Demo : can handle appended compressed streams.
yann.collet.73@gmail.com [Sat, 12 May 2012 19:14:43 +0000 (19:14 +0000)]
Added : LZ4Demo : can handle appended compressed streams.

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

12 years agominor : Force Software-bit-count for WinCE environment under Visual. Thanks Bayang...
yann.collet.73@gmail.com [Wed, 9 May 2012 23:49:41 +0000 (23:49 +0000)]
minor : Force Software-bit-count for WinCE environment under Visual. Thanks Bayang for Reporting.

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

12 years agoCorrected : linking stage of Visual 2005 in Debug mode (issue 16)
yann.collet.73@gmail.com [Mon, 7 May 2012 23:10:02 +0000 (23:10 +0000)]
Corrected : linking stage of Visual 2005 in Debug mode (issue 16)
Minor changes in comments

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

12 years agoAdded : cmake configuration file, from Dmitry Cherepanov
yann.collet.73@gmail.com [Sun, 8 Apr 2012 15:18:12 +0000 (15:18 +0000)]
Added : cmake configuration file, from Dmitry Cherepanov

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

12 years agoCorrected : minor : changed a macro name to avoid duplicate within NetBSD. Thanks...
yann.collet.73@gmail.com [Tue, 3 Apr 2012 19:34:15 +0000 (19:34 +0000)]
Corrected : minor : changed a macro name to avoid duplicate within NetBSD. Thanks Gray for reporting (Issue 15)

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

12 years agoAdded : lz4demo : software swap32 backend for compilers which do not support hardware...
yann.collet.73@gmail.com [Fri, 16 Mar 2012 19:50:58 +0000 (19:50 +0000)]
Added : lz4demo : software swap32 backend for compilers which do not support hardware ones. Thanks Dmitry Cherepanov for contribution

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

12 years agominor code refactoring, mostly around __builtin_expect
yann.collet.73@gmail.com [Fri, 9 Mar 2012 21:46:59 +0000 (21:46 +0000)]
minor code refactoring, mostly around __builtin_expect

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

12 years agoSmall speed improvement (compression & decompression), Thanks Maciej Adamczyk for...
yann.collet.73@gmail.com [Thu, 1 Mar 2012 15:19:08 +0000 (15:19 +0000)]
Small speed improvement (compression & decompression), Thanks Maciej Adamczyk for suggestion
Fixed : LZ4_uncompress_unknownOutputSize(), now protected against a malicious attack type, where a crafted input deliberately attempts to make it read outside of input buffer. Thanks Steinar H. Gunderson for report.

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

12 years agoAdded : format description file
yann.collet.73@gmail.com [Sat, 25 Feb 2012 19:13:16 +0000 (19:13 +0000)]
Added : format description file
Added : new tuning parameter : LZ4_COMPRESSMIN. Thanks to Maciej Adamczyk for suggestion.
changed : macro for bswap16, in order to help GCC intrinsic detection. Thank to Erik Andersen for suggestion.

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

12 years agoCorrected : default to Software Bit Count for GCC earlier than 3.4. Thanks to Gray.
yann.collet.73@gmail.com [Mon, 20 Feb 2012 20:53:49 +0000 (20:53 +0000)]
Corrected : default to Software Bit Count for GCC earlier than 3.4. Thanks to Gray.
Corrected : ARM compilation under Visual Studio : now generates cautious code, like GCC, to ensure compatibility with strict-align CPUs. Thanks to Joe WoodBury.
Minor : bench.c : Hash verification changed to MurmurHash3A
Minor : bench.c : selectable block size

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

12 years agoAdded : LZ4_compressBound() function
yann.collet.73@gmail.com [Thu, 16 Feb 2012 18:39:50 +0000 (18:39 +0000)]
Added : LZ4_compressBound() function
corrected : bench.c now correctly detects file size on a wider ranger of compilers; thanks to Erik Andersen
minor : removed warnings on undefined (-Wundef on gcc), thanks David Sterba for suggestion

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

12 years agoMinor comments refactoring, for better clarity
yann.collet.73@gmail.com [Mon, 6 Feb 2012 21:21:48 +0000 (21:21 +0000)]
Minor comments refactoring, for better clarity

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

12 years agominor interface modification : source pointers are now (const char*)
yann.collet.73@gmail.com [Wed, 1 Feb 2012 20:16:10 +0000 (20:16 +0000)]
minor interface modification : source pointers are now (const char*)

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

12 years agoBetter detection of Big-Endian and PowerPC CPU
yann.collet.73@gmail.com [Wed, 1 Feb 2012 04:19:38 +0000 (04:19 +0000)]
Better detection of Big-Endian and PowerPC CPU
LZ4Demo : correction : produces compatible streams on both big-endian and little-endian systems

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

12 years agoCorrected a bug in the decoder in 64-bit mode
yann.collet.73@gmail.com [Mon, 16 Jan 2012 22:26:03 +0000 (22:26 +0000)]
Corrected a bug in the decoder in 64-bit mode

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

12 years agoImproved compression speed for 64-bit CPUs
yann.collet.73@gmail.com [Sat, 14 Jan 2012 17:17:12 +0000 (17:17 +0000)]
Improved compression speed for 64-bit CPUs

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

12 years agoImproved compression speed for 64-bit CPU
yann.collet.73@gmail.com [Fri, 13 Jan 2012 19:44:18 +0000 (19:44 +0000)]
Improved compression speed for 64-bit CPU

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

12 years agoImproved compression speed for big-endian CPU
yann.collet.73@gmail.com [Tue, 10 Jan 2012 20:03:01 +0000 (20:03 +0000)]
Improved compression speed for big-endian CPU

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

12 years agoDecompression speed improved in 64-bit mode
yann.collet.73@gmail.com [Mon, 9 Jan 2012 23:21:05 +0000 (23:21 +0000)]
Decompression speed improved in 64-bit mode
Decoding functions are now also immune to out-of-buffer read errors (note : they were already protected against malicious out-of-buffer write attacks)

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

12 years agoAdded : benchmark function within command-line utility
yann.collet.73@gmail.com [Sun, 8 Jan 2012 02:45:32 +0000 (02:45 +0000)]
Added : benchmark function within command-line utility

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

12 years agoImproved compression and decompression speed on 64-bits CPU
yann.collet.73@gmail.com [Sat, 7 Jan 2012 20:26:15 +0000 (20:26 +0000)]
Improved compression and decompression speed on 64-bits CPU

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

12 years agoImproved compression speed. Thanks to David Sterba for suggestion.
yann.collet.73@gmail.com [Wed, 4 Jan 2012 13:08:10 +0000 (13:08 +0000)]
Improved compression speed. Thanks to David Sterba for suggestion.
Compression ratio improvements in "small packet" mode (<64KB).

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

12 years agoEndianess correction
yann.collet.73@gmail.com [Fri, 16 Dec 2011 23:41:46 +0000 (23:41 +0000)]
Endianess correction

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

12 years agoEndianess correction
yann.collet.73@gmail.com [Fri, 9 Dec 2011 13:59:59 +0000 (13:59 +0000)]
Endianess correction

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

12 years agoSlightly improved compression speed
yann.collet.73@gmail.com [Mon, 21 Nov 2011 23:56:21 +0000 (23:56 +0000)]
Slightly improved compression speed

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