platform/upstream/lz4.git
9 years agoPreliminary support for sparse files
Yann Collet [Wed, 11 Mar 2015 18:42:37 +0000 (19:42 +0100)]
Preliminary support for sparse files

9 years agoFixed minor warnings
Yann Collet [Wed, 11 Mar 2015 17:38:44 +0000 (18:38 +0100)]
Fixed minor warnings

9 years agog++ compatibility
Yann Collet [Tue, 10 Mar 2015 15:57:42 +0000 (16:57 +0100)]
g++ compatibility

9 years agoUpdated datagen (can create sparse files)
Yann Collet [Mon, 9 Mar 2015 23:12:51 +0000 (00:12 +0100)]
Updated datagen (can create sparse files)

9 years agoMerge pull request #54 from t-mat/gc-issue/155
Yann Collet [Sun, 8 Mar 2015 18:06:17 +0000 (19:06 +0100)]
Merge pull request #54 from t-mat/gc-issue/155

Gc issue/155

9 years agoFixed : static library (x64 binary)
Yann Collet [Sun, 8 Mar 2015 11:50:40 +0000 (12:50 +0100)]
Fixed : static library (x64 binary)

9 years agoNetBSD compatibility (#48)
Yann Collet [Sat, 7 Mar 2015 18:30:45 +0000 (19:30 +0100)]
NetBSD compatibility (#48)

9 years agoUpdated : compress multiple files
Yann Collet [Sat, 7 Mar 2015 12:23:00 +0000 (13:23 +0100)]
Updated : compress multiple files

9 years agoMerge pull request #52 from KyleJHarper/r128/multiple_inputs
Yann Collet [Tue, 3 Mar 2015 00:04:40 +0000 (01:04 +0100)]
Merge pull request #52 from KyleJHarper/r128/multiple_inputs

Adding support for multiple file processing.  Fixes Google code issue 151.

9 years agoFix sentinel bit pattern
Takayuki MATSUOKA [Thu, 12 Feb 2015 14:50:14 +0000 (23:50 +0900)]
Fix sentinel bit pattern

Set all bits of U64.

9 years agoFix sentinel size miscalculation
Takayuki MATSUOKA [Thu, 12 Feb 2015 12:26:32 +0000 (21:26 +0900)]
Fix sentinel size miscalculation

Since is_nul() style wild-comparing stride is U64, we must add sizeof(U64) to the sentinel.

9 years agoAdd GNU coreutil's is_nul() method to isSparse()
Takayuki MATSUOKA [Thu, 12 Feb 2015 12:00:50 +0000 (21:00 +0900)]
Add GNU coreutil's is_nul() method to isSparse()

See original source
http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/system.h

9 years agoAdd Neil's method to isSparse()
Takayuki MATSUOKA [Thu, 12 Feb 2015 11:18:16 +0000 (20:18 +0900)]
Add Neil's method to isSparse()

9 years agoImprove isSparse()
Takayuki MATSUOKA [Thu, 12 Feb 2015 10:58:49 +0000 (19:58 +0900)]
Improve isSparse()

9 years agoAdjust coding style
Takayuki MATSUOKA [Thu, 12 Feb 2015 07:13:23 +0000 (16:13 +0900)]
Adjust coding style

9 years agoGoogle Code Issue 155: lz4 cli should support sparse file
Takayuki MATSUOKA [Thu, 12 Feb 2015 06:46:02 +0000 (15:46 +0900)]
Google Code Issue 155: lz4 cli should support sparse file
https://code.google.com/p/lz4/issues/detail?id=155

This is experimental implementation. Just a proof of concept.
It works Linux and Windows.

# Build

To build experimental version, define 'LZ4IO_ENABLE_SPARSE_FILE' like the following command :

    make lz4programs 'CFLAGS=-O3 -DLZ4IO_ENABLE_SPARSE_FILE=1'
    ./programs/lz4 -h

You will see "EXPERIMENTAL_SPARSE_FILE" as lz4 revision :

    "*** LZ4 command line interface 64-bits EXPERIMENTAL_SPARSE_FILE, by Yann Collet (...) ***"

# Experiment

This experimental version adds option "-x" for sparse file for decompression.
You can use this option like this :

    ./programs/lz4 -9 -f my-file
    ./programs/lz4 -d -f -x my-file.lz4 my-file.lz4.out
    cmp my-file my-file.lz4.out

9 years agoAdded support for multiple input files to act more like other compressors. For exampl...
kyle [Mon, 2 Mar 2015 01:00:40 +0000 (19:00 -0600)]
Added support for multiple input files to act more like other compressors. For example: gzip file1 file2 file3. You can now do: lz4 [args] -m file1 file2 file3. Fixes 151.

9 years agoMerge pull request #49 from t-mat/msvc-fseeki64
Yann Collet [Sun, 1 Mar 2015 23:41:38 +0000 (00:41 +0100)]
Merge pull request #49 from t-mat/msvc-fseeki64

Avoid MSVC fseek()'s 2GiB barrier

9 years agorestored lz4 hc compression ratio
Yann Collet [Sun, 1 Mar 2015 23:11:34 +0000 (00:11 +0100)]
restored lz4 hc compression ratio

9 years agoReplace fseek with _fseeki64 to avoid MSVC's 2GiB barrier
Takayuki MATSUOKA [Sat, 14 Feb 2015 03:48:11 +0000 (12:48 +0900)]
Replace fseek with _fseeki64 to avoid MSVC's 2GiB barrier

Since MSVC fseek()'s SEEK_CUR mode has 2GiB barrier, our fseek() calling in program/lz4io.c/selectDecoder() will fail for large (>2GiB) .lz4 file.
This commit just replace fseek with _fseeki64 by macro. Second argument is automatically casted to __int64 (signed 64bit integer). Other things are completely same.

9 years agoFix : lz4frame.h within uninstaller
Yann Collet [Wed, 21 Jan 2015 17:03:17 +0000 (18:03 +0100)]
Fix : lz4frame.h within uninstaller

9 years agoAdded : Visual project directory
Yann Collet [Tue, 13 Jan 2015 04:36:58 +0000 (05:36 +0100)]
Added : Visual project directory

9 years agoAdded : -pedantic compilation option
Yann Collet [Wed, 17 Dec 2014 11:32:49 +0000 (12:32 +0100)]
Added : -pedantic compilation option

9 years agoC90 compatibility
Yann Collet [Wed, 17 Dec 2014 11:20:17 +0000 (12:20 +0100)]
C90 compatibility

9 years agoFixed : older compiler don't like nameless unions, reported by Cheyi Lin
Yann Collet [Tue, 16 Dec 2014 21:03:16 +0000 (22:03 +0100)]
Fixed : older compiler don't like nameless unions, reported by Cheyi Lin

9 years agoFixed : bug within LZ4 HC streaming mode, reported by James Boyle
Yann Collet [Tue, 16 Dec 2014 01:13:19 +0000 (02:13 +0100)]
Fixed : bug within LZ4 HC streaming mode, reported by James Boyle

9 years agoFixed : GCC 4.9 bug on highest performance settings, reported by Greg Slazinski
Yann Collet [Sun, 14 Dec 2014 13:29:15 +0000 (14:29 +0100)]
Fixed : GCC 4.9 bug on highest performance settings, reported by Greg Slazinski

9 years agoUpdated comments
Yann Collet [Sat, 13 Dec 2014 16:08:51 +0000 (17:08 +0100)]
Updated comments

9 years agofixed travis tests
Yann Collet [Sat, 13 Dec 2014 15:41:05 +0000 (16:41 +0100)]
fixed travis tests

9 years agoFixed : install test on travis
Yann Collet [Sat, 13 Dec 2014 14:38:15 +0000 (15:38 +0100)]
Fixed : install test on travis

9 years agoNew : lz4frame integrated into liblz4 (v1.5.0)
Yann Collet [Sat, 13 Dec 2014 14:05:46 +0000 (15:05 +0100)]
New : lz4frame integrated into liblz4 (v1.5.0)

9 years agoFixed : minor warnings under Visual
Yann Collet [Sat, 13 Dec 2014 10:49:55 +0000 (11:49 +0100)]
Fixed : minor warnings under Visual

9 years agominor memtest correction
Yann Collet [Wed, 10 Dec 2014 22:00:50 +0000 (23:00 +0100)]
minor memtest correction

9 years agoupdated NEWS
Yann Collet [Wed, 10 Dec 2014 17:02:40 +0000 (18:02 +0100)]
updated NEWS

9 years agoFixed : LZ4_compress_limitedOutput() bug, as reported by Christopher Speller
Yann Collet [Wed, 10 Dec 2014 16:58:15 +0000 (17:58 +0100)]
Fixed : LZ4_compress_limitedOutput() bug, as reported by Christopher Speller

9 years agostronger tests for LZ4_compress_limitedOutput()
Yann Collet [Wed, 10 Dec 2014 08:05:44 +0000 (09:05 +0100)]
stronger tests for LZ4_compress_limitedOutput()

9 years agofixed : pkg version
Yann Collet [Tue, 9 Dec 2014 08:47:54 +0000 (09:47 +0100)]
fixed : pkg version

9 years agominor refactoring
Yann Collet [Sat, 6 Dec 2014 16:10:54 +0000 (17:10 +0100)]
minor refactoring

9 years agoClarified a few comments
Yann Collet [Wed, 3 Dec 2014 22:19:11 +0000 (23:19 +0100)]
Clarified a few comments

9 years agoMerge pull request #38 from Cyan4973/newDir
Yann Collet [Wed, 3 Dec 2014 18:40:23 +0000 (19:40 +0100)]
Merge pull request #38 from Cyan4973/newDir

New dir

9 years agoFixed : deprecated function LZ4_slideInputBufferHC()
Yann Collet [Wed, 3 Dec 2014 18:17:10 +0000 (19:17 +0100)]
Fixed : deprecated function LZ4_slideInputBufferHC()

9 years agovariable ref renamed
Yann Collet [Tue, 2 Dec 2014 22:57:15 +0000 (23:57 +0100)]
variable ref renamed

9 years agolz4frame.h : clarified a few comments
Yann Collet [Mon, 1 Dec 2014 21:00:07 +0000 (22:00 +0100)]
lz4frame.h : clarified a few comments

9 years agoMerge pull request #37 from Cyan4973/newDir
Yann Collet [Mon, 1 Dec 2014 13:06:30 +0000 (14:06 +0100)]
Merge pull request #37 from Cyan4973/newDir

New dir

9 years agolz4cli : legacy arguments are now disabled by default
Yann Collet [Mon, 1 Dec 2014 00:25:18 +0000 (01:25 +0100)]
lz4cli : legacy arguments are now disabled by default

9 years agoFixed : make dist
Yann Collet [Mon, 1 Dec 2014 00:20:42 +0000 (01:20 +0100)]
Fixed : make dist

9 years agoClarified some file names
Yann Collet [Sun, 30 Nov 2014 23:53:20 +0000 (00:53 +0100)]
Clarified some file names

9 years agofix : sudo for make install
Yann Collet [Sun, 30 Nov 2014 22:37:55 +0000 (23:37 +0100)]
fix : sudo for make install

9 years ago(no commit message)
Yann Collet [Sun, 30 Nov 2014 22:34:29 +0000 (23:34 +0100)]

9 years agoNew directory structure : library source files into /lib directory
Yann Collet [Sun, 30 Nov 2014 22:32:12 +0000 (23:32 +0100)]
New directory structure : library source files into /lib directory

9 years agoUpdate cmakelist to support new lz4io version
Yann Collet [Sun, 30 Nov 2014 17:04:32 +0000 (18:04 +0100)]
Update cmakelist to support new lz4io version

9 years agoLZ4IO : modified to use lz4frame instead
Yann Collet [Sun, 30 Nov 2014 16:59:31 +0000 (17:59 +0100)]
LZ4IO : modified to use lz4frame instead

9 years agoMerge pull request #36 from Cyan4973/AlignEndian
Yann Collet [Sun, 30 Nov 2014 12:54:04 +0000 (13:54 +0100)]
Merge pull request #36 from Cyan4973/AlignEndian

Align endian

9 years agoFixed : some minor Visual warnings
Yann Collet [Sun, 30 Nov 2014 11:58:00 +0000 (12:58 +0100)]
Fixed : some minor Visual warnings

9 years agoUpdated lz4hc : re-use most shared elements from lz4 (endianess / align / bus detecti...
Yann Collet [Sat, 29 Nov 2014 19:19:39 +0000 (20:19 +0100)]
Updated lz4hc : re-use most shared elements from lz4 (endianess / align / bus detection routines)

9 years agoImproved compression speed on big endian CPU
Yann Collet [Sat, 29 Nov 2014 16:44:33 +0000 (17:44 +0100)]
Improved compression speed on big endian CPU

9 years agominor : fixed warning under clang
Yann Collet [Sat, 29 Nov 2014 16:12:26 +0000 (17:12 +0100)]
minor : fixed warning under clang

9 years agoFixed : decompression issue on 32-bits CPU without unaligned memory access
Yann Collet [Sat, 29 Nov 2014 15:41:28 +0000 (16:41 +0100)]
Fixed : decompression issue on 32-bits CPU without unaligned memory access

9 years agoFixed decompression bug
Yann Collet [Fri, 28 Nov 2014 01:48:21 +0000 (02:48 +0100)]
Fixed decompression bug

9 years agoImproved decoding speed
Yann Collet [Thu, 27 Nov 2014 21:44:36 +0000 (22:44 +0100)]
Improved decoding speed

9 years agoAdded : $(EXT) within install for cross-compilation support
Yann Collet [Sun, 23 Nov 2014 17:36:04 +0000 (18:36 +0100)]
Added : $(EXT) within install for cross-compilation support

9 years agoCorrected lz4io
Yann Collet [Sun, 23 Nov 2014 00:14:04 +0000 (01:14 +0100)]
Corrected lz4io

9 years agoNew endian & alignment code
Yann Collet [Sat, 22 Nov 2014 23:46:15 +0000 (00:46 +0100)]
New endian & alignment code

9 years agoMakefile : refactored Travis CI tests
Yann Collet [Tue, 4 Nov 2014 19:56:38 +0000 (20:56 +0100)]
Makefile : refactored Travis CI tests

9 years agolz4.h : updated library version number to 1.4.0
Yann Collet [Tue, 4 Nov 2014 19:04:43 +0000 (20:04 +0100)]
lz4.h : updated library version number to 1.4.0

9 years agoFixed issue 44 : stopped concatenated stream on null size frame (thanks to Brendan...
Yann Collet [Tue, 4 Nov 2014 11:11:14 +0000 (12:11 +0100)]
Fixed issue 44 : stopped concatenated stream on null size frame (thanks to Brendan O'Connor)

9 years agoFixed issue #31 : lz4.c warning under visual
Yann Collet [Tue, 4 Nov 2014 10:07:04 +0000 (11:07 +0100)]
Fixed issue #31 : lz4.c warning under visual

9 years agoAdded : cmake test
Yann Collet [Tue, 4 Nov 2014 09:50:17 +0000 (10:50 +0100)]
Added : cmake test
cmake : corrected xxhash path (thanks to j.magnuson)

9 years agoMakefile : added -Wcast-align compilation warning
Yann Collet [Tue, 4 Nov 2014 09:32:50 +0000 (10:32 +0100)]
Makefile : added -Wcast-align compilation warning

9 years agoUpdated unsynchronized buffers tests
Yann Collet [Tue, 4 Nov 2014 09:04:37 +0000 (10:04 +0100)]
Updated unsynchronized buffers tests

9 years agoUpdated ring buffer examples
Yann Collet [Mon, 3 Nov 2014 08:29:45 +0000 (09:29 +0100)]
Updated ring buffer examples

9 years agofullbench : display Algorithm Nb
Yann Collet [Mon, 3 Nov 2014 08:18:15 +0000 (09:18 +0100)]
fullbench : display Algorithm Nb

9 years agoOptimized LZ4_saveDictHC()
Yann Collet [Sun, 2 Nov 2014 21:32:12 +0000 (22:32 +0100)]
Optimized LZ4_saveDictHC()

9 years agoUpdated xxHash to r38
Yann Collet [Sat, 1 Nov 2014 20:58:31 +0000 (21:58 +0100)]
Updated xxHash to r38

9 years agoAdded : valgrind test for fuzzer
Yann Collet [Wed, 29 Oct 2014 00:47:43 +0000 (01:47 +0100)]
Added : valgrind test for fuzzer

9 years agominor fuzzer test correction
Yann Collet [Wed, 29 Oct 2014 00:39:47 +0000 (01:39 +0100)]
minor fuzzer test correction

9 years agoMerge pull request #33 from Cyan4973/streamHC
Yann Collet [Tue, 28 Oct 2014 22:12:04 +0000 (23:12 +0100)]
Merge pull request #33 from Cyan4973/streamHC

Stream hc

9 years agoFixed : frametest for Travis CI build matrix
Yann Collet [Tue, 28 Oct 2014 14:58:25 +0000 (15:58 +0100)]
Fixed : frametest for Travis CI build matrix

9 years agonew Travis CI build matrix
Yann Collet [Tue, 28 Oct 2014 14:35:43 +0000 (15:35 +0100)]
new Travis CI build matrix

9 years agoAdded : frametest32
Yann Collet [Tue, 28 Oct 2014 10:32:42 +0000 (11:32 +0100)]
Added : frametest32

9 years agoLZ4 HC streaming integrated within lz4frame
Yann Collet [Mon, 27 Oct 2014 23:39:06 +0000 (00:39 +0100)]
LZ4 HC streaming integrated within lz4frame

9 years agoHC streaming : support for very long streaming (> 4 GB) scenarios
Yann Collet [Sun, 26 Oct 2014 10:22:15 +0000 (11:22 +0100)]
HC streaming : support for very long streaming (> 4 GB) scenarios

9 years agoHC streaming : support small ringbuffer scenarios
Yann Collet [Sat, 25 Oct 2014 19:52:10 +0000 (20:52 +0100)]
HC streaming : support small ringbuffer scenarios

9 years agoAdded : HC streaming ring buffer example
Yann Collet [Wed, 22 Oct 2014 07:07:56 +0000 (08:07 +0100)]
Added : HC streaming ring buffer example

9 years agofixed LZ4F_compressFrameBound (dynamic block resize)
Yann Collet [Tue, 21 Oct 2014 23:36:32 +0000 (00:36 +0100)]
fixed LZ4F_compressFrameBound (dynamic block resize)

9 years agoLZ4 HC : fixed small dictionary streaming compression
Yann Collet [Mon, 20 Oct 2014 23:12:55 +0000 (00:12 +0100)]
LZ4 HC : fixed small dictionary streaming compression

9 years agoLZ4 HC : External Dictionary compression : First implementation
Yann Collet [Mon, 20 Oct 2014 00:08:21 +0000 (01:08 +0100)]
LZ4 HC : External Dictionary compression : First implementation

9 years agominor refactoring of LZ4 HC, to prepare for external dictionaries
Yann Collet [Sun, 19 Oct 2014 16:41:42 +0000 (17:41 +0100)]
minor refactoring of LZ4 HC, to prepare for external dictionaries

9 years agofuzzer : easier random replay
Yann Collet [Sun, 19 Oct 2014 15:06:33 +0000 (16:06 +0100)]
fuzzer : easier random replay

9 years agofuzzer : fixed test 21
Yann Collet [Sun, 19 Oct 2014 14:25:35 +0000 (15:25 +0100)]
fuzzer : fixed test 21

9 years agofuzzer : faster jump to testNb
Yann Collet [Sun, 19 Oct 2014 12:47:22 +0000 (13:47 +0100)]
fuzzer : faster jump to testNb

9 years agofuzzer : fixed minor command lines issues
Yann Collet [Sat, 18 Oct 2014 12:27:32 +0000 (13:27 +0100)]
fuzzer : fixed minor command lines issues

9 years agoupdated LZ4HC API
Yann Collet [Sat, 18 Oct 2014 10:18:14 +0000 (11:18 +0100)]
updated LZ4HC API

9 years agoMerge branch 'dev' of https://github.com/Cyan4973/lz4 into dev
Yann Collet [Fri, 17 Oct 2014 08:00:55 +0000 (10:00 +0200)]
Merge branch 'dev' of https://github.com/Cyan4973/lz4 into dev

9 years agofuzzer : pause at the end is disabled by default
Yann Collet [Fri, 10 Oct 2014 19:58:42 +0000 (20:58 +0100)]
fuzzer : pause at the end is disabled by default

9 years agomodified : fuzzer automatically selects seed
Yann Collet [Thu, 9 Oct 2014 21:15:57 +0000 (22:15 +0100)]
modified : fuzzer automatically selects seed

9 years agoUpdated : xxHash to r37
Yann Collet [Mon, 6 Oct 2014 10:13:56 +0000 (11:13 +0100)]
Updated : xxHash to r37

9 years agoupdate distribution builder "make dist"
Yann Collet [Mon, 6 Oct 2014 00:10:29 +0000 (01:10 +0100)]
update distribution builder "make dist"
update test, to also verify "make dist"

9 years agoFixed : LZ4F_compressBound() using null preferencesPtr
Yann Collet [Sun, 5 Oct 2014 23:48:45 +0000 (00:48 +0100)]
Fixed : LZ4F_compressBound() using null preferencesPtr
Updated : frametest, to check LZ4F_compressBound() using null preferencesPtr

9 years agoMerge pull request #28 from Cyan4973/dev
Yann Collet [Thu, 25 Sep 2014 12:03:36 +0000 (14:03 +0200)]
Merge pull request #28 from Cyan4973/dev

updated comment on compressionLevel field