Commit Graph

166 Commits

Author SHA1 Message Date
Kouhei Sutou
829941e5a8 Add missing $(EXT) to lz4 program name 2016-09-23 10:43:12 +09:00
Yann Collet
28f98647e3 lz4 version source from lz4.h 2016-09-02 22:04:16 -07:00
Yann Collet
182645ee0f lz4 as phony target 2016-08-20 23:49:36 +02:00
Yann Collet
0214638eb7 Makefile : lz4 at root 2016-08-20 23:26:33 +02:00
Martin Waschbüsch
7bfbccb972 Add FreeBSD to install targets
Add FreeBSD to install targets
2016-05-17 07:47:03 +02:00
Julius Werner
4fcb2e17fb Remove whitespace from ends of lines
I'm trying to import LZ4 code into a project with strict linting
requirements. This will make that easier.

Signed-off-by: Julius Werner <jwerner@chromium.org>
2016-02-12 22:49:52 -08:00
Yann Collet
fb6fece770 Updated Makefile and .travis 2015-09-01 15:59:24 +01:00
Yann Collet
5dd12b4a7c faster sanitize tests 2015-08-15 18:18:01 +01:00
Yann Collet
60119e2585 Makefile : generates *.o for faster processing 2015-08-15 17:21:45 +01:00
Yann Collet
a3c6daba6e liblz4 : Moved XXH_NAMESPACE to CPPFLAGS 2015-07-02 10:29:24 -08:00
Yann Collet
6fe48b9183 changed datagen to remove one malloc 2015-06-28 19:43:12 -08:00
Yann Collet
57e14d4c17 renamed directory to versionsTest 2015-06-28 12:45:24 -07:00
Yann Collet
7273da38ba minor example clarification 2015-06-28 02:34:12 -08:00
Yann Collet
caba2cc0f5 staticAnalyze use same compilation flags as normal build 2015-06-27 13:21:33 -08:00
Yann Collet
8e8dc17cae Ensured make test is not confused with directory test 2015-06-27 12:44:51 -08:00
Yann Collet
c04df7e1b5 Changed : static library is no longer compiled with -fPIC by default (this option can still be added on the command line) See #53 2015-06-27 01:30:31 -08:00
Zbigniew Jędrzejewski-Szmek
3bcf68ff35 Use lz4 binary to check output 2015-06-17 23:45:15 -04:00
Zbigniew Jędrzejewski-Szmek
386d216cdf Add example which uses the frame api through the library 2015-06-17 23:45:15 -04:00
Yann Collet
91c1b9a682 Performance fix : big compression speed boost for clang (+30%) 2015-05-21 01:17:56 +01:00
Yann Collet
cdb136d960 cosmetic changes, 2nd try 2015-05-15 16:51:07 +02:00
Takayuki MATSUOKA
fe11e0b142 Issue #103 : Add compatibility test between releases
Add forward/backward compatibility test between all versions

 - Add new Makefile target "versionstest".
 - Standard test procedure like "make versionstest && make clean"
   works properly.

test/test-lz4-versions.py

 - This script creates test/lz4test and checkout all
   Release tagged versions.  After that, compile all versions of
   lz4c and lz4c32 and compress/decompress between all versions.

 - This test clones entire git repository to checkout all tags.
    - Since Travis's default command does not clone entire repository,
      we could not checkout all tags from Travis' default clone.

 - After that, test script shows all unique .lz4 files.  In this list,
   'r999' means 'head' of current working copy.
2015-05-15 09:27:44 +09:00
Yann Collet
9e92bee044 stronger arm tests 2015-04-16 13:34:03 +01:00
Yann Collet
0ed2e7111e Static analyzer generates error codes on bug suspicion 2015-04-16 12:48:50 +01:00
Yann Collet
2c7988761d Shortened tests durations 2015-04-12 16:40:58 +01:00
Yann Collet
2852b9e439 Fixed issue #84 2015-04-12 15:17:10 +01:00
Yann Collet
c22a0e1e13 Updated : fuzzer tests can be programmed for a timelength 2015-04-10 23:42:17 +01:00
Yann Collet
33134fb6c8 Added : sanitize test 2015-04-09 23:53:55 +01:00
Yann Collet
b41137f42a minor Makefile test refactoring 2015-04-08 09:33:57 +01:00
Yann Collet
89eee0d28b Removed make dist 2015-04-01 15:09:32 +01:00
Yann Collet
0615eb4814 Stricter tests : treat warnings as errors 2015-04-01 15:05:27 +01:00
Yann Collet
7c26b03854 Updated make dist 2015-03-31 10:22:18 +01:00
Yann Collet
5780864c0c Fixed : Makefile 2015-03-26 14:16:20 +01:00
Yann Collet
b0097677f2 windows friendly make clean 2015-03-26 11:41:55 +01:00
Yann Collet
27f7d06ca8 minor beautifier (make clean) 2015-03-26 00:28:14 +01:00
Yann Collet
b4755c7902 Added : arm cross-compilation test 2015-03-25 23:59:38 +01:00
Yann Collet
d0f8d407b0 updated dist list 2015-03-23 08:57:14 +01:00
Yann Collet
2b55752a5c changed "make install" default install directory to /usr/local 2015-03-15 20:40:38 +01:00
Yann Collet
bbcfe2144d Added : clang test 2015-03-15 14:19:47 +01:00
Yann Collet
45b0642bf5 scan-build tests 2015-03-15 01:42:27 +01:00
Yann Collet
e38c268b5a Fixed minor g++ warnings 2015-03-11 20:11:14 +01:00
Yann Collet
ceec6fa849 g++ compatibility 2015-03-10 16:57:42 +01:00
Yann Collet
6b0c39b839 Updated datagen (can create sparse files) 2015-03-10 00:12:51 +01:00
Yann Collet
32a85fc76d NetBSD compatibility (#48) 2015-03-07 19:30:45 +01:00
Yann Collet
b6788b004d fixed travis tests 2014-12-13 16:41:05 +01:00
Yann Collet
daa320f3f7 New : lz4frame integrated into liblz4 (v1.5.0) 2014-12-13 15:05:46 +01:00
Yann Collet
fc4a6153b0 fixed : pkg version 2014-12-09 09:47:54 +01:00
Yann Collet
b827ecf728 Clarified a few comments 2014-12-03 23:19:11 +01:00
Yann Collet
a109c91818 Fixed : make dist 2014-12-01 01:20:42 +01:00
Yann Collet
989346b75e fix : sudo for make install 2014-11-30 23:37:55 +01:00
Yann Collet
d008c87151 New directory structure : library source files into /lib directory 2014-11-30 23:32:12 +01:00
Yann Collet
86fa21b301 Added : $(EXT) within install for cross-compilation support 2014-11-23 18:36:04 +01:00
Yann Collet
73554386ed Makefile : refactored Travis CI tests 2014-11-04 20:56:38 +01:00
Yann Collet
4dbd2faebb Added : cmake test
cmake : corrected xxhash path (thanks to j.magnuson)
2014-11-04 10:50:17 +01:00
Yann Collet
d01bb4a193 Makefile : added -Wcast-align compilation warning 2014-11-04 10:32:50 +01:00
Yann Collet
9bf331afc6 new Travis CI build matrix 2014-10-28 15:35:43 +01:00
Yann Collet
72b51859e0 update distribution builder "make dist"
update test, to also verify "make dist"
2014-10-06 01:10:29 +01:00
Yann Collet
f7f67e778c Added : preliminary frame decompression function 2014-09-01 22:44:02 +01:00
Yann Collet
da07465b64 Simplified travis test flow 2014-08-26 14:39:09 +01:00
Yann Collet
4dc1eca5a9 updated release number 2014-08-13 16:44:44 +01:00
Igor Gnatenko
0cca754ea1 Makefile: fix DESTDIR
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2014-08-08 13:33:08 +02:00
Yann Collet
3897eb6e9b Makefile : restored Takayuki's fix for OS-X and BSD
minor display change for make install
2014-08-06 09:06:00 +01:00
Yann Collet
4ea832b8ff Updated Makefile : make dist
Minor formatting changes for xxhash
2014-08-06 08:55:08 +01:00
Takayuki MATSUOKA
525cb11c22 Fix BSD sed error reported by Yue Du
This change is related to LZ4 issue #14.

 - Add more unique pattern to line recognition
 - Change Extended Regular Expression to Basic Regular Expression
2014-07-30 18:41:45 +09:00
Yann Collet
a50c102f5a Added : Makefile : install for kFreeBSD and Hurd (Nobuhiro Iwamatsu) 2014-07-26 15:15:00 +01:00
Yann Collet
9f42b0925d Makefile : synchronize library version number with lz4.h - Thanks to Takayuki Matsuoka 2014-07-22 17:25:35 +01:00
Yann Collet
2c15ec421a Makefile : some corrections suggested by Michał Górny (issue 136) 2014-07-21 21:01:59 +01:00
Yann Collet
dc107107f7 Added : pkg-config (issue 135) 2014-07-20 17:18:48 +02:00
Yann Collet
a154628e70 Makefile : added -Wstrict-prototype, as suggested by Larry Doolittle 2014-07-14 23:29:40 +01:00
Yann Collet
fbe14d128e Modified : lz4 streaming API, strong types 2014-07-14 23:04:10 +01:00
Yann Collet
e002818cf6 Modified : Makefile : added -Wshadow option, suggest by Boris Faure 2014-07-05 13:33:57 +01:00
Yann Collet
070b33518a Fix : OS-X : library install name, thanks to Clemens Lang 2014-07-05 13:05:55 +01:00
Yann Collet
fd51d0567b updated fuzzer, faster and cleaner overflow tests 2014-07-05 12:50:05 +01:00
Yann Collet
bdb5bcefff update to r119 2014-07-02 22:03:58 +01:00
Yann Collet
1411c2b674 Quickfix of issue 134 (untested) 2014-07-02 04:36:56 +01:00
Yann Collet
790db934f1 updated lz4cat man page 2014-06-24 18:59:51 +01:00
Yann Collet
2f0a717a35 LZ4 Streaming : check overlapping input/dictionary 2014-06-14 16:56:24 +01:00
Yann Collet
a79180f51d New : valgrind memtest 2014-06-09 01:01:04 +01:00
Yann Collet
4b43c2bd98 Continuous streaming mode (automatic) 2014-05-21 19:46:36 +01:00
Yann Collet
f6beaa779d re-order travis tests
fix : remove man pages on uninstall
2014-04-23 00:54:32 +01:00
Takayuki MATSUOKA
a41790a759 Add build target 'test' 2014-04-16 23:26:15 +09:00
Yann Collet
e63b1478b8 Added README.md to the list of packaged files 2014-04-15 20:43:39 +02:00
Yann Collet
5b91330ce2 Added lz4c & lz4cat man pages 2014-04-15 16:47:48 +02:00
Yann Collet
374d6ac35c Fixed issue 127 & 128 2014-04-15 15:03:17 +02:00
yann.collet.73@gmail.com
37be46701a quickfix (issue 124 & 125)
git-svn-id: https://lz4.googlecode.com/svn/trunk@116 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2014-03-24 20:59:20 +00:00
yann.collet.73@gmail.com
848fdf3c15 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
2014-03-23 11:15:37 +00:00
yann.collet.73@gmail.com
a9d8640c1f 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
2014-03-12 14:51:59 +00:00
yann.collet.73@gmail.com
69dc85b8ab 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
2014-02-04 14:11:10 +00:00
yann.collet.73@gmail.com
96a60a52eb quickfix (issue 107 & issue 103)
git-svn-id: https://lz4.googlecode.com/svn/trunk@112 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2014-01-08 18:50:11 +00:00
yann.collet.73@gmail.com
648678788c 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
2014-01-07 18:47:50 +00:00
yann.collet.73@gmail.com
fb38ddaacb 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
2013-12-30 17:16:52 +00:00
yann.collet.73@gmail.com
8ac549f10a 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
2013-12-03 15:50:46 +00:00
yann.collet.73@gmail.com
7a863abfc2 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
2013-11-02 12:11:04 +00:00
yann.collet.73@gmail.com
a78db582d3 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
2013-10-21 08:03:40 +00:00
yann.collet.73@gmail.com
82bf5be9b0 git-svn-id: https://lz4.googlecode.com/svn/trunk@106 650e7d94-2a16-8b24-b05c-7c0b3f6821cd 2013-10-01 20:32:43 +00:00
yann.collet.73@gmail.com
c63f81c105 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
2013-09-25 09:00:37 +00:00
yann.collet.73@gmail.com
3e65c1e0c6 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
2013-09-09 09:06:21 +00:00
yann.collet.73@gmail.com
27efcd4d45 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
2013-08-12 08:35:52 +00:00
yann.collet.73@gmail.com
002a93473d 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
2013-07-01 07:50:40 +00:00
yann.collet.73@gmail.com
16c0942822 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
2013-06-10 17:29:13 +00:00
yann.collet.73@gmail.com
a2e93db805 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
2013-04-18 08:53:13 +00:00