platform/upstream/lz4.git
7 years agoremoved LZ4_DLL_EXPORT=1 (2)
Przemyslaw Skibinski [Wed, 9 Nov 2016 11:52:27 +0000 (12:52 +0100)]
removed LZ4_DLL_EXPORT=1 (2)

7 years agoremoved LZ4_DLL_EXPORT=1
Przemyslaw Skibinski [Wed, 9 Nov 2016 11:36:49 +0000 (12:36 +0100)]
removed LZ4_DLL_EXPORT=1

7 years agoadded fullbench-dll.vcxproj
Przemyslaw Skibinski [Wed, 9 Nov 2016 10:55:34 +0000 (11:55 +0100)]
added fullbench-dll.vcxproj

7 years agoMerge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Przemyslaw Skibinski [Wed, 9 Nov 2016 10:46:02 +0000 (11:46 +0100)]
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev

7 years agointroduced LZ4_COMPILED_AS_DLL
Przemyslaw Skibinski [Wed, 9 Nov 2016 10:45:55 +0000 (11:45 +0100)]
introduced LZ4_COMPILED_AS_DLL

7 years agoMerge pull request #261 from terrelln/clean-fasttest
Yann Collet [Wed, 9 Nov 2016 01:56:10 +0000 (17:56 -0800)]
Merge pull request #261 from terrelln/clean-fasttest

Remove fasttest when cleaning

7 years agoRemove fasttest when cleaning
Nick Terrell [Wed, 9 Nov 2016 01:41:06 +0000 (17:41 -0800)]
Remove fasttest when cleaning

7 years agoMerge pull request #260 from nemequ/dev
Yann Collet [Tue, 8 Nov 2016 22:50:02 +0000 (14:50 -0800)]
Merge pull request #260 from nemequ/dev

cmake: significant changes to accomodate a new "bundled" mode.

7 years agocmake: significant changes to accomodate a new "bundled" mode.
Evan Nemerson [Tue, 8 Nov 2016 21:31:47 +0000 (13:31 -0800)]
cmake: significant changes to accomodate a new "bundled" mode.

This makes it much easier to include LZ4 in a CMake-based project;
you only need to add_subdirectory(lz4/contrib/cmake_unofficial),
then you can use the lz4 target (which is the library).  In bundled
mode a static library will be built and nothing will be installed,
although the lz4 and lz4c command line tools will still be built.

This also makes some other much less intrusive changes, including:

 * Version information is now parsed from lib/lz4.h so the
   CMakeLists.txt file no longer needs to manually be kept up to date
   manually.
 * pkg-config file uses ${prefix} where appropriate instead of writing
   out full paths, which is important for people on Windows.
 * Warning flags are now checked instead of blindly added.
 * The GNUInstallDirs module is used to determine installation
   locations.
 * The static library generates position independent code, which means
   it's usable when building a shared library.
 * The CLI tools link to liblz4 instead of duplicating the object code.

7 years agoMerge pull request #259 from inikep/dev
Yann Collet [Tue, 8 Nov 2016 18:06:58 +0000 (10:06 -0800)]
Merge pull request #259 from inikep/dev

Dev

7 years agoupdated IntDir
Przemyslaw Skibinski [Tue, 8 Nov 2016 15:59:38 +0000 (16:59 +0100)]
updated IntDir

7 years agoadded lz4-dll project
Przemyslaw Skibinski [Tue, 8 Nov 2016 15:31:09 +0000 (16:31 +0100)]
added lz4-dll project

7 years agoVS project: added IntDir
Przemyslaw Skibinski [Tue, 8 Nov 2016 15:27:46 +0000 (16:27 +0100)]
VS project: added IntDir

7 years agoVS project: added setargv.obj
Przemyslaw Skibinski [Tue, 8 Nov 2016 15:27:07 +0000 (16:27 +0100)]
VS project: added setargv.obj

7 years agoadded test-lz4-speed.py
Przemyslaw Skibinski [Tue, 8 Nov 2016 12:50:45 +0000 (13:50 +0100)]
added test-lz4-speed.py

7 years agobench.c: support notification level
Przemyslaw Skibinski [Tue, 8 Nov 2016 12:50:27 +0000 (13:50 +0100)]
bench.c: support notification level

7 years agojoined arm and aarch64 tests
Przemyslaw Skibinski [Tue, 8 Nov 2016 11:33:01 +0000 (12:33 +0100)]
joined arm and aarch64 tests

7 years agoerr0r(LZ4F_errorCodes code) uses ptrdiff_t
Przemyslaw Skibinski [Tue, 8 Nov 2016 10:47:03 +0000 (11:47 +0100)]
err0r(LZ4F_errorCodes code) uses ptrdiff_t

7 years agotest powerpc64
Przemyslaw Skibinski [Tue, 8 Nov 2016 10:16:16 +0000 (11:16 +0100)]
test powerpc64

7 years agotests\Makefile: added test-platform
Przemyslaw Skibinski [Tue, 8 Nov 2016 09:43:18 +0000 (10:43 +0100)]
tests\Makefile: added test-platform

7 years agoadded platformTest
Przemyslaw Skibinski [Tue, 8 Nov 2016 08:48:01 +0000 (09:48 +0100)]
added platformTest

7 years agonew Travis tests
Przemyslaw Skibinski [Tue, 8 Nov 2016 08:19:09 +0000 (09:19 +0100)]
new Travis tests

7 years agoMerge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Przemyslaw Skibinski [Tue, 8 Nov 2016 07:44:19 +0000 (08:44 +0100)]
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev

7 years agoslightly improved HC compression ratio
Yann Collet [Tue, 8 Nov 2016 03:32:24 +0000 (19:32 -0800)]
slightly improved HC compression ratio

7 years agosmall compression ratio and speed improvement on small files
Yann Collet [Tue, 8 Nov 2016 01:31:38 +0000 (17:31 -0800)]
small compression ratio and speed improvement on small files

7 years agoFix #243 : detect and report fread() errors, by @iyokan
Yann Collet [Mon, 7 Nov 2016 20:33:10 +0000 (12:33 -0800)]
Fix #243 : detect and report fread() errors, by @iyokan

7 years agoMerge branch 'dev' of github.com:Cyan4973/lz4 into dev
Yann Collet [Mon, 7 Nov 2016 18:31:43 +0000 (10:31 -0800)]
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev

7 years agoMerge pull request #258 from inikep/dev2
Yann Collet [Mon, 7 Nov 2016 18:30:54 +0000 (10:30 -0800)]
Merge pull request #258 from inikep/dev2

Travis tests reduced to 11

7 years agoMerge pull request #257 from inikep/dev
Yann Collet [Mon, 7 Nov 2016 18:28:55 +0000 (10:28 -0800)]
Merge pull request #257 from inikep/dev

added --rm option

7 years agoMOREFLAGS="-Werror"
Przemyslaw Skibinski [Mon, 7 Nov 2016 17:21:59 +0000 (18:21 +0100)]
MOREFLAGS="-Werror"

7 years agoadded "make c_standards"
Przemyslaw Skibinski [Mon, 7 Nov 2016 16:43:37 +0000 (17:43 +0100)]
added "make c_standards"

7 years agocondensed travis.yml
Przemyslaw Skibinski [Mon, 7 Nov 2016 15:46:39 +0000 (16:46 +0100)]
condensed travis.yml

7 years agoupdated travis.yml
Przemyslaw Skibinski [Mon, 7 Nov 2016 15:15:22 +0000 (16:15 +0100)]
updated travis.yml

7 years agoadded --rm option
Przemyslaw Skibinski [Mon, 7 Nov 2016 13:50:58 +0000 (14:50 +0100)]
added --rm option

7 years agoupdated declaration of LZ4F_freeDecompressionContext
Przemyslaw Skibinski [Mon, 7 Nov 2016 13:14:42 +0000 (14:14 +0100)]
updated declaration of LZ4F_freeDecompressionContext

7 years agoadded datagen.c to lz4.vcxproj
Przemyslaw Skibinski [Mon, 7 Nov 2016 13:04:43 +0000 (14:04 +0100)]
added datagen.c to lz4.vcxproj

7 years agoTreatWarningAsError=true only for debug
Przemyslaw Skibinski [Mon, 7 Nov 2016 13:00:30 +0000 (14:00 +0100)]
TreatWarningAsError=true only for debug

7 years agofixed appveyor.yml (3)
Przemyslaw Skibinski [Mon, 7 Nov 2016 12:47:48 +0000 (13:47 +0100)]
fixed appveyor.yml (3)

7 years agofixed appveyor.yml (2)
Przemyslaw Skibinski [Mon, 7 Nov 2016 12:43:25 +0000 (13:43 +0100)]
fixed appveyor.yml (2)

7 years agofixed appveyor.yml
Przemyslaw Skibinski [Mon, 7 Nov 2016 12:00:08 +0000 (13:00 +0100)]
fixed appveyor.yml

7 years agoCopy owner, file permissions and modification time
Przemyslaw Skibinski [Mon, 7 Nov 2016 11:41:14 +0000 (12:41 +0100)]
Copy owner, file permissions and modification time

7 years agoutil.h requires CharacterSet=MultiByte
Przemyslaw Skibinski [Mon, 7 Nov 2016 11:13:35 +0000 (12:13 +0100)]
util.h requires CharacterSet=MultiByte

7 years agofixed --test
Przemyslaw Skibinski [Mon, 7 Nov 2016 11:13:12 +0000 (12:13 +0100)]
fixed --test

7 years agoMerge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Przemyslaw Skibinski [Sun, 6 Nov 2016 10:11:55 +0000 (11:11 +0100)]
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev

7 years agoMerge pull request #254 from terrelln/dev
Yann Collet [Sat, 5 Nov 2016 09:11:35 +0000 (02:11 -0700)]
Merge pull request #254 from terrelln/dev

Fix LZ4_decompress_fast_continue() bug

7 years agoFix LZ4_decompress_fast_continue() bug
Nick Terrell [Sat, 5 Nov 2016 02:59:50 +0000 (19:59 -0700)]
Fix LZ4_decompress_fast_continue() bug

It specified the external dictionary location incorrectly.
Add tests that expose this bug with both normal compilation and ASAN.

7 years agominor refactor
Yann Collet [Sat, 5 Nov 2016 02:04:32 +0000 (19:04 -0700)]
minor refactor

7 years agoUpdated man page
Yann Collet [Sat, 5 Nov 2016 01:29:07 +0000 (18:29 -0700)]
Updated man page

7 years agorestricted deprecation warning to fairly recent gcc versions (>=6.0)
Yann Collet [Sat, 5 Nov 2016 00:11:06 +0000 (17:11 -0700)]
restricted deprecation warning to fairly recent gcc versions (>=6.0)

7 years agolz4frame obsolete enum should trigger deprecation warnings (on supported compilers)
Yann Collet [Fri, 4 Nov 2016 23:58:34 +0000 (16:58 -0700)]
lz4frame obsolete enum should trigger deprecation warnings (on supported compilers)

7 years agoremoved support for old error code enums from lz4frame_static.h, to free up namespace.
Yann Collet [Fri, 4 Nov 2016 23:29:43 +0000 (16:29 -0700)]
removed support for old error code enums from lz4frame_static.h, to free up namespace.
note : lz4frame_static.h does not guaranteed API stability.
note 2 : the macro to enable old error code enums is still present. Just needs to comment one line to re-enable them.

7 years agoMerge pull request #252 from inikep/dev
Yann Collet [Fri, 4 Nov 2016 20:54:19 +0000 (13:54 -0700)]
Merge pull request #252 from inikep/dev

Dev

7 years agoMerge pull request #253 from terrelln/exit-code
Yann Collet [Fri, 4 Nov 2016 20:49:19 +0000 (13:49 -0700)]
Merge pull request #253 from terrelln/exit-code

Return error if input file does not exist.

7 years agoFix typo in lz4 manpage
Nick Terrell [Fri, 4 Nov 2016 19:46:39 +0000 (12:46 -0700)]
Fix typo in lz4 manpage

7 years agoQuiet gcc-4.6.3 narrowing warning
Nick Terrell [Fri, 4 Nov 2016 19:34:28 +0000 (12:34 -0700)]
Quiet gcc-4.6.3 narrowing warning

7 years agoReturn error if input file does not exist.
Nick Terrell [Fri, 4 Nov 2016 18:58:10 +0000 (11:58 -0700)]
Return error if input file does not exist.

Make `lz4 file-does-not-exist` return non-zero.

7 years agofixed Travis tests
Przemyslaw Skibinski [Fri, 4 Nov 2016 15:56:01 +0000 (16:56 +0100)]
fixed Travis tests

7 years agoupdated #include in util.h
Przemyslaw Skibinski [Fri, 4 Nov 2016 14:52:34 +0000 (15:52 +0100)]
updated #include in util.h

7 years agobetter correctness on big-endian 64-bits platforms
Yann Collet [Fri, 4 Nov 2016 14:22:50 +0000 (07:22 -0700)]
better correctness on big-endian 64-bits platforms

7 years agosmall compression speed improvement on 64-bits systems
Yann Collet [Fri, 4 Nov 2016 14:13:49 +0000 (07:13 -0700)]
small compression speed improvement on 64-bits systems

7 years agoupdated lz4cli.c
Przemyslaw Skibinski [Fri, 4 Nov 2016 13:46:45 +0000 (14:46 +0100)]
updated lz4cli.c

7 years agobench.c based on zstd
Przemyslaw Skibinski [Fri, 4 Nov 2016 13:26:12 +0000 (14:26 +0100)]
bench.c based on zstd

7 years agoredefined VOID for Windows/MSYS
Przemyslaw Skibinski [Fri, 4 Nov 2016 12:32:36 +0000 (13:32 +0100)]
redefined VOID for Windows/MSYS

7 years agoadded -r option
Przemyslaw Skibinski [Fri, 4 Nov 2016 12:30:09 +0000 (13:30 +0100)]
added -r option

7 years agoMerge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Przemyslaw Skibinski [Fri, 4 Nov 2016 09:22:32 +0000 (10:22 +0100)]
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev

7 years agoMerge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Przemyslaw Skibinski [Fri, 4 Nov 2016 09:06:45 +0000 (10:06 +0100)]
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev

7 years agoMerge pull request #250 from terrelln/test-mode
Yann Collet [Fri, 4 Nov 2016 04:08:06 +0000 (21:08 -0700)]
Merge pull request #250 from terrelln/test-mode

Fix test mode and write to null

7 years agominor code refactoring
Yann Collet [Fri, 4 Nov 2016 03:32:51 +0000 (20:32 -0700)]
minor code refactoring

7 years agoRename passThrough to testMode
Nick Terrell [Fri, 4 Nov 2016 01:50:25 +0000 (18:50 -0700)]
Rename passThrough to testMode

7 years agofix #198 : no longer requires to restart streaming decompression from where it stopped.
Yann Collet [Fri, 4 Nov 2016 01:34:54 +0000 (18:34 -0700)]
fix #198 : no longer requires to restart streaming decompression from where it stopped.
It permits relocating remaining data into another memory space.
Still, the same content must be presented.

7 years agoFix tests for test mode
Nick Terrell [Fri, 4 Nov 2016 01:19:14 +0000 (18:19 -0700)]
Fix tests for test mode

7 years agofixed strict warnings
Yann Collet [Fri, 4 Nov 2016 00:31:41 +0000 (17:31 -0700)]
fixed strict warnings

7 years agoupdated comments
Yann Collet [Fri, 4 Nov 2016 00:14:25 +0000 (17:14 -0700)]
updated comments

7 years agoFix test mode and write to null
Nick Terrell [Thu, 3 Nov 2016 22:41:09 +0000 (15:41 -0700)]
Fix test mode and write to null

Fix test mode to not always return success.
Don't ask for permission to overwrite `nulmark`.

Before:

    > echo "hello world" > file
    > lz4 -t file
    successfully decoded 12 bytes
    > lz4 -tf file
    successfully decoded 12 bytes
    > lz4 file null
    Warning : /dev/null already exists
    Overwrite ? (Y/n) : n
    Error 12 : No. Operation aborted : /dev/null already exists
    > lz4 file /dev/null
    Warning : /dev/null already exists
    Overwrite ? (Y/n) : n
    Error 12 : No. Operation aborted : /dev/null already exists

After:

    > lz4 -t file
    Error 44 : Unrecognized header : file cannot be decoded
    > lz4 -tf file
    Error 44 : Unrecognized header : file cannot be decoded
    > lz4 file null
    Compressed 12 bytes into 31 bytes ==> 258.33%
    > lz4 file /dev/null
    Compressed 12 bytes into 31 bytes ==> 258.33%

7 years agofixed travis badges
Yann Collet [Thu, 3 Nov 2016 17:52:03 +0000 (10:52 -0700)]
fixed travis badges

7 years agoMerge pull request #249 from inikep/dev
Yann Collet [Thu, 3 Nov 2016 17:49:33 +0000 (10:49 -0700)]
Merge pull request #249 from inikep/dev

Dev

7 years agofixed clang conversion warning
Yann Collet [Thu, 3 Nov 2016 17:39:35 +0000 (10:39 -0700)]
fixed clang conversion warning

7 years agocheck fread() operation results (#243)
Yann Collet [Thu, 3 Nov 2016 16:27:35 +0000 (09:27 -0700)]
check fread() operation results (#243)

7 years agoupdated programs/README.md
Przemyslaw Skibinski [Thu, 3 Nov 2016 15:17:38 +0000 (16:17 +0100)]
updated programs/README.md

7 years agoversionsTests moved to tests/
Przemyslaw Skibinski [Thu, 3 Nov 2016 15:01:50 +0000 (16:01 +0100)]
versionsTests moved to tests/

7 years agoupdated .travis.yml
Przemyslaw Skibinski [Thu, 3 Nov 2016 14:28:50 +0000 (15:28 +0100)]
updated .travis.yml

7 years agoupdated Visual Studio projects
Przemyslaw Skibinski [Thu, 3 Nov 2016 14:18:59 +0000 (15:18 +0100)]
updated Visual Studio projects

7 years agoupdated links to LZ4 repository
Przemyslaw Skibinski [Thu, 3 Nov 2016 14:12:57 +0000 (15:12 +0100)]
updated links to LZ4 repository

7 years agotest programs moved to tests/
Przemyslaw Skibinski [Thu, 3 Nov 2016 14:03:43 +0000 (15:03 +0100)]
test programs moved to tests/

7 years agodocumentation moved to doc/
Przemyslaw Skibinski [Thu, 3 Nov 2016 12:25:20 +0000 (13:25 +0100)]
documentation moved to doc/

7 years agoMerge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Przemyslaw Skibinski [Thu, 3 Nov 2016 12:12:51 +0000 (13:12 +0100)]
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev

7 years agofix for ARM platform
Yann Collet [Wed, 2 Nov 2016 04:04:56 +0000 (21:04 -0700)]
fix for ARM platform

7 years agoClarified license (#115, #244)
Yann Collet [Wed, 2 Nov 2016 02:14:04 +0000 (19:14 -0700)]
Clarified license (#115, #244)

7 years agomoved cmake and debian directories to contrib (#245)
Yann Collet [Wed, 2 Nov 2016 00:26:22 +0000 (17:26 -0700)]
moved cmake and debian directories to contrib (#245)

7 years agofixed #247, reported by Felix Bolte
Yann Collet [Tue, 1 Nov 2016 23:54:33 +0000 (16:54 -0700)]
fixed #247, reported by Felix Bolte

7 years agofixes static compilation under Windows (#246)
Yann Collet [Fri, 21 Oct 2016 16:49:30 +0000 (09:49 -0700)]
fixes static compilation under Windows (#246)

7 years agoMerge pull request #242 from vapier/dev
Yann Collet [Fri, 23 Sep 2016 21:47:24 +0000 (23:47 +0200)]
Merge pull request #242 from vapier/dev

README: fix minor typo

7 years agoREADME: fix minor typo
Mike Frysinger [Fri, 23 Sep 2016 18:09:31 +0000 (14:09 -0400)]
README: fix minor typo

7 years agoMerge pull request #241 from vapier/dev
Yann Collet [Fri, 23 Sep 2016 13:59:39 +0000 (15:59 +0200)]
Merge pull request #241 from vapier/dev

add a flag to disable static libs

7 years agoMerge pull request #238 from kou/add-lz4lib-api
Yann Collet [Fri, 23 Sep 2016 06:54:24 +0000 (08:54 +0200)]
Merge pull request #238 from kou/add-lz4lib-api

Add LZ4LIB_API

7 years agoMerge pull request #240 from kou/add-missin-ext
Yann Collet [Fri, 23 Sep 2016 06:51:35 +0000 (08:51 +0200)]
Merge pull request #240 from kou/add-missin-ext

Add missing $(EXT) to lz4 program name

7 years agoadd a flag to disable static libs
Mike Frysinger [Fri, 23 Sep 2016 03:59:02 +0000 (23:59 -0400)]
add a flag to disable static libs

7 years agoAdd missing $(EXT) to lz4 program name
Kouhei Sutou [Fri, 23 Sep 2016 01:43:12 +0000 (10:43 +0900)]
Add missing $(EXT) to lz4 program name

7 years agoUse different prefix for each file to avoid conflict
Kouhei Sutou [Fri, 23 Sep 2016 01:38:33 +0000 (10:38 +0900)]
Use different prefix for each file to avoid conflict

7 years agoMerge pull request #239 from kou/use-lower-case-for-header-name
Yann Collet [Thu, 22 Sep 2016 17:13:05 +0000 (19:13 +0200)]
Merge pull request #239 from kou/use-lower-case-for-header-name

Use lower case for header file name