platform/upstream/lz4.git
9 years agofullbench : tests of _limitedOutput variants intentionnally provides less memory...
Yann Collet [Wed, 1 Apr 2015 17:21:03 +0000 (18:21 +0100)]
fullbench : tests of _limitedOutput variants intentionnally provides less memory space than safe (LZ4_compressBound())

9 years agoFixed issue 160, reported by Eric Berge
Yann Collet [Wed, 1 Apr 2015 16:30:36 +0000 (17:30 +0100)]
Fixed issue 160, reported by Eric Berge

9 years agosimplified LZ4_compress_limitedOutput()
Yann Collet [Wed, 1 Apr 2015 14:53:08 +0000 (15:53 +0100)]
simplified LZ4_compress_limitedOutput()

9 years agoRemoved make dist
Yann Collet [Wed, 1 Apr 2015 14:09:32 +0000 (15:09 +0100)]
Removed make dist

9 years agoStricter tests : treat warnings as errors
Yann Collet [Wed, 1 Apr 2015 14:05:27 +0000 (15:05 +0100)]
Stricter tests : treat warnings as errors

9 years agosimplified LZ4_compress_withState()
Yann Collet [Wed, 1 Apr 2015 13:59:42 +0000 (14:59 +0100)]
simplified LZ4_compress_withState()

9 years agosimplified LZ4_compress()
Yann Collet [Wed, 1 Apr 2015 13:48:24 +0000 (14:48 +0100)]
simplified LZ4_compress()

9 years agoModified files rights
Yann Collet [Tue, 31 Mar 2015 19:29:24 +0000 (20:29 +0100)]
Modified files rights

9 years agoRemoved Visual 2013 solution, as AppVeyor automated mode only works with a single...
Yann Collet [Tue, 31 Mar 2015 19:27:34 +0000 (20:27 +0100)]
Removed Visual 2013 solution, as AppVeyor automated mode only works with a single solution

9 years agoAdded : Visual 2013 solution
Yann Collet [Tue, 31 Mar 2015 19:08:52 +0000 (20:08 +0100)]
Added : Visual 2013 solution

9 years agoUpdated Visual 2012 solution : + 3 projects (fullbench, frametest, datagen)
Yann Collet [Tue, 31 Mar 2015 18:12:59 +0000 (19:12 +0100)]
Updated Visual 2012 solution : + 3 projects (fullbench, frametest, datagen)

9 years agoFix : minor warning under Visual
Yann Collet [Tue, 31 Mar 2015 17:52:52 +0000 (18:52 +0100)]
Fix : minor warning under Visual

9 years agoRemoved .suo & .user files from Visual solutions
Yann Collet [Tue, 31 Mar 2015 17:38:16 +0000 (18:38 +0100)]
Removed .suo & .user files from Visual solutions

9 years agoRestored proper credit
Yann Collet [Tue, 31 Mar 2015 15:14:54 +0000 (16:14 +0100)]
Restored proper credit

9 years agoFixed : Windows compilation
Yann Collet [Tue, 31 Mar 2015 13:47:23 +0000 (14:47 +0100)]
Fixed : Windows compilation
Added : Appveyor badge

9 years agoUpdated make dist
Yann Collet [Tue, 31 Mar 2015 09:22:18 +0000 (10:22 +0100)]
Updated make dist

9 years agoAdded : Frame documentation in MarkDown format
Yann Collet [Tue, 31 Mar 2015 08:44:56 +0000 (09:44 +0100)]
Added : Frame documentation in MarkDown format

9 years agoRemoved HTML Frame Format documentation
Yann Collet [Tue, 31 Mar 2015 08:42:44 +0000 (09:42 +0100)]
Removed HTML Frame Format documentation

9 years agominor tweak
Yann Collet [Mon, 30 Mar 2015 21:39:08 +0000 (22:39 +0100)]
minor tweak

9 years agoUpdated readme
Yann Collet [Mon, 30 Mar 2015 20:38:37 +0000 (21:38 +0100)]
Updated readme

9 years agoAdded LZ4_compress_fast()
Yann Collet [Mon, 30 Mar 2015 20:32:25 +0000 (21:32 +0100)]
Added LZ4_compress_fast()

9 years agofixed fullbench memory allocation error
Yann Collet [Mon, 30 Mar 2015 17:39:29 +0000 (18:39 +0100)]
fixed fullbench memory allocation error

9 years agofaster compression in 64 bits mode
Yann Collet [Mon, 30 Mar 2015 17:34:15 +0000 (18:34 +0100)]
faster compression in 64 bits mode

9 years agoUpdated documentation
Yann Collet [Mon, 30 Mar 2015 17:32:21 +0000 (18:32 +0100)]
Updated documentation

9 years agochanged file name
Yann Collet [Mon, 30 Mar 2015 17:31:55 +0000 (18:31 +0100)]
changed file name

9 years agoUpdated comments on LZ4F_getFrameInfo()
Yann Collet [Mon, 30 Mar 2015 15:36:57 +0000 (16:36 +0100)]
Updated comments on LZ4F_getFrameInfo()

9 years agorestored lz4hc compression ratio
Yann Collet [Mon, 30 Mar 2015 14:57:26 +0000 (15:57 +0100)]
restored lz4hc compression ratio

9 years agolz4frame validates contentSize during decompression
Yann Collet [Sun, 29 Mar 2015 12:28:32 +0000 (13:28 +0100)]
lz4frame validates contentSize during decompression

9 years agoChanged struct member to contentSize
Yann Collet [Sun, 29 Mar 2015 10:20:09 +0000 (11:20 +0100)]
Changed struct member to contentSize

9 years agoconverted to markdown friendly syntax
Yann Collet [Thu, 26 Mar 2015 18:58:19 +0000 (19:58 +0100)]
converted to markdown friendly syntax

9 years agoReference format doc
Yann Collet [Thu, 26 Mar 2015 18:49:15 +0000 (19:49 +0100)]
Reference format doc

9 years agoFixed : Makefile
Yann Collet [Thu, 26 Mar 2015 13:16:20 +0000 (14:16 +0100)]
Fixed : Makefile

9 years agowindows friendly make clean
Yann Collet [Thu, 26 Mar 2015 10:41:55 +0000 (11:41 +0100)]
windows friendly make clean

9 years agominor beautifier (make clean)
Yann Collet [Wed, 25 Mar 2015 23:28:14 +0000 (00:28 +0100)]
minor beautifier (make clean)

9 years agoAdded : arm cross-compilation test
Yann Collet [Wed, 25 Mar 2015 22:59:38 +0000 (23:59 +0100)]
Added : arm cross-compilation test

9 years agoFixed cast-align warnings on 32-bits
Yann Collet [Wed, 25 Mar 2015 17:06:40 +0000 (18:06 +0100)]
Fixed cast-align warnings on 32-bits

9 years agoAdded : doc authorship
Yann Collet [Wed, 25 Mar 2015 16:22:26 +0000 (17:22 +0100)]
Added : doc authorship

9 years agoMerge pull request #63 from t-mat/comment-on-example-directory
Yann Collet [Wed, 25 Mar 2015 12:31:06 +0000 (13:31 +0100)]
Merge pull request #63 from t-mat/comment-on-example-directory

Comment on example directory

9 years agoAdd "Examples" subtree
Takayuki MATSUOKA [Tue, 24 Mar 2015 23:12:18 +0000 (08:12 +0900)]
Add "Examples" subtree

9 years agoAdd README.md as table of contents
Takayuki MATSUOKA [Tue, 24 Mar 2015 22:53:02 +0000 (07:53 +0900)]
Add README.md as table of contents

9 years agoAdd document for "Line by Line Text Compression" example
Takayuki MATSUOKA [Tue, 24 Mar 2015 22:52:35 +0000 (07:52 +0900)]
Add document for "Line by Line Text Compression" example

9 years agoAdd document for "Double Buffer" example
Takayuki MATSUOKA [Tue, 24 Mar 2015 22:52:17 +0000 (07:52 +0900)]
Add document for "Double Buffer" example

9 years agoAdd document : "Streaming API Basics"
Takayuki MATSUOKA [Tue, 24 Mar 2015 22:51:56 +0000 (07:51 +0900)]
Add document : "Streaming API Basics"

9 years agoUpdated man page : "--[no-]X"
Yann Collet [Mon, 23 Mar 2015 20:22:13 +0000 (21:22 +0100)]
Updated man page : "--[no-]X"

9 years agoUpdated tests
Yann Collet [Mon, 23 Mar 2015 19:03:45 +0000 (20:03 +0100)]
Updated tests

9 years agoUpdated long commands, with reverse "--no-" variants
Yann Collet [Mon, 23 Mar 2015 18:59:41 +0000 (19:59 +0100)]
Updated long commands, with reverse "--no-" variants

9 years agoupdated dist list
Yann Collet [Mon, 23 Mar 2015 07:57:14 +0000 (08:57 +0100)]
updated dist list

9 years agolz4 cli supports frame content size
Yann Collet [Mon, 23 Mar 2015 01:20:42 +0000 (02:20 +0100)]
lz4 cli supports frame content size

9 years agoremoved useless man pages
Yann Collet [Sun, 22 Mar 2015 12:51:22 +0000 (13:51 +0100)]
removed useless man pages

9 years agoUpdates tests & Man pages
Yann Collet [Sun, 22 Mar 2015 12:42:00 +0000 (13:42 +0100)]
Updates tests & Man pages

9 years agonew long commands
Yann Collet [Sat, 21 Mar 2015 12:34:55 +0000 (13:34 +0100)]
new long commands

9 years agoSome more tests related to frame content size
Yann Collet [Thu, 19 Mar 2015 00:05:59 +0000 (01:05 +0100)]
Some more tests related to frame content size

9 years agoframe content size support
Yann Collet [Wed, 18 Mar 2015 20:38:27 +0000 (21:38 +0100)]
frame content size support

9 years agoUpdated lz4io sparse file support (alignment properties)
Yann Collet [Tue, 17 Mar 2015 17:02:01 +0000 (18:02 +0100)]
Updated lz4io sparse file support (alignment properties)

9 years agominor lz4frame optimisation (no more malloc() on using LZ4F_compressFrame() in fast...
Yann Collet [Mon, 16 Mar 2015 22:22:59 +0000 (23:22 +0100)]
minor lz4frame optimisation (no more malloc() on using LZ4F_compressFrame() in fast mode)

9 years agominor lz4frame refactoring
Yann Collet [Mon, 16 Mar 2015 21:35:02 +0000 (22:35 +0100)]
minor lz4frame refactoring

9 years agoUpdated LZ4 frame format documentation
Yann Collet [Mon, 16 Mar 2015 20:57:14 +0000 (21:57 +0100)]
Updated LZ4 frame format documentation

9 years agoAdded : Readme into lib directory, to explain what does each file
Yann Collet [Mon, 16 Mar 2015 20:48:40 +0000 (21:48 +0100)]
Added : Readme into lib directory, to explain what does each file

9 years agolz4 utility supports "pass-through" mode
Yann Collet [Mon, 16 Mar 2015 19:38:25 +0000 (20:38 +0100)]
lz4 utility supports "pass-through" mode

9 years agominor refactoring
Yann Collet [Mon, 16 Mar 2015 18:19:39 +0000 (19:19 +0100)]
minor refactoring

9 years agoskippable frames support
Yann Collet [Mon, 16 Mar 2015 16:52:14 +0000 (17:52 +0100)]
skippable frames support

9 years agominor CMakeLists update
Yann Collet [Mon, 16 Mar 2015 10:26:49 +0000 (11:26 +0100)]
minor CMakeLists update

9 years agoMerge pull request #60 from Cyberunner23/master
Yann Collet [Mon, 16 Mar 2015 10:18:07 +0000 (11:18 +0100)]
Merge pull request #60 from Cyberunner23/master

Removed checking of CMAKE_SYSTEM_PROCESSOR when adding -fPIC, breaks whe...

9 years agoRemoved checking of CMAKE_SYSTEM_PROCESSOR when adding -fPIC, breaks when that var...
Cyberunner23 [Sun, 15 Mar 2015 22:08:32 +0000 (18:08 -0400)]
Removed checking of CMAKE_SYSTEM_PROCESSOR when adding -fPIC, breaks when that var is '64bit'.

9 years agoremoved -s command from lz4c specific list of legacy commands
Yann Collet [Sun, 15 Mar 2015 19:47:49 +0000 (20:47 +0100)]
removed -s command from lz4c specific list of legacy commands

9 years agoAdded : unlz4 symbolic link to "lz4 -d"
Yann Collet [Sun, 15 Mar 2015 19:42:40 +0000 (20:42 +0100)]
Added :  unlz4 symbolic link to "lz4 -d"

9 years agochanged "make install" default install directory to /usr/local
Yann Collet [Sun, 15 Mar 2015 19:40:38 +0000 (20:40 +0100)]
changed "make install" default install directory to /usr/local

9 years agoAdded : clang test
Yann Collet [Sun, 15 Mar 2015 13:19:47 +0000 (14:19 +0100)]
Added : clang test

9 years agoFix : static analyzer test on Travis
Yann Collet [Sun, 15 Mar 2015 01:14:02 +0000 (02:14 +0100)]
Fix : static analyzer test on Travis

9 years agoscan-build tests
Yann Collet [Sun, 15 Mar 2015 00:42:27 +0000 (01:42 +0100)]
scan-build tests

9 years agoMerge pull request #58 from Cyan4973/sparseFile
Yann Collet [Sun, 15 Mar 2015 00:34:05 +0000 (01:34 +0100)]
Merge pull request #58 from Cyan4973/sparseFile

Sparse file

9 years agowindows sparse file support
Yann Collet [Fri, 13 Mar 2015 21:15:08 +0000 (22:15 +0100)]
windows sparse file support

9 years agoImproved sparse files support
Yann Collet [Fri, 13 Mar 2015 19:36:59 +0000 (20:36 +0100)]
Improved sparse files support

9 years agoImproved sparse file support
Yann Collet [Fri, 13 Mar 2015 01:24:08 +0000 (02:24 +0100)]
Improved sparse file support

9 years agoFixed minor g++ warnings
Yann Collet [Wed, 11 Mar 2015 19:11:14 +0000 (20:11 +0100)]
Fixed minor g++ warnings

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 agoMerge pull request #57 from alexDarcy/master
Yann Collet [Wed, 11 Mar 2015 13:35:47 +0000 (14:35 +0100)]
Merge pull request #57 from alexDarcy/master

Updated Cmake configuration for non-gnu compiler v2

9 years agoUpdated Cmake configuration for non-gnu compiler
alexDarcy [Wed, 11 Mar 2015 10:13:20 +0000 (11:13 +0100)]
Updated Cmake configuration for non-gnu compiler

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 agoMerge pull request #47 from Cyan4973/dev
Yann Collet [Fri, 19 Dec 2014 08:51:32 +0000 (09:51 +0100)]
Merge pull request #47 from Cyan4973/dev

Dev