Yann Collet
2012e4de9e
fixed c_standards tests
...
and added entry "make list"
2017-05-10 14:51:09 -07:00
Yann Collet
a902127613
bumped version number to 1.8.0
...
due to addition of prototype
LZ4F_resetDecompressionContext()
2017-05-10 13:27:18 -07:00
Yann Collet
b8575f2d2b
updated Makefile
...
to automatically build manual files with
make all
2017-05-10 13:26:04 -07:00
Yann Collet
fe932c4527
expose LZ4F_resetDecompressionContext()
2017-05-10 12:25:05 -07:00
Yann Collet
1efa48831e
minor readability changes
2017-05-02 12:01:13 -07:00
Yann Collet
a8dd86d93e
changed macro HEAPMODE into LZ4_HEAPMODE
...
This macro is susceptible to be triggered from user side
typically through compiler flag (-DLZ4_HEAPMODE=1).
In which case, it makes sense to prefix the macro
since we want to reduce potential side-effect on namespace.
2017-05-01 22:32:21 -07:00
Yann Collet
11bfedb6c3
Merge pull request #349 from svpv/master
...
clamp hc levels > 12 + minor fixes in comments
2017-04-29 22:33:39 -07:00
Alexey Tourbin
6cf1f7d758
lz4hc.c: clamp compression levels > 12
...
I noticed that, while 'lz4 -12' works fine, 'lz4 -13' does not compress
at all.
$ cat </etc/passwd |wc -c
2565
$ lz4 -12 </etc/passwd |wc -c
1456
$ lz4 -13 </etc/passwd |wc -c
2584
Perhaps the best way to fix this is to clamp the compression level
in the LZ4HC_compress_generic routine.
2017-04-29 16:33:15 +03:00
Alexey Tourbin
a41df535f7
lz4cli.c: fix a comment: LZ4HC_DEFAULT_CLEVEL -> LZ4HC_CLEVEL_MAX
...
Actually the program only mentions LZ4HC_CLEVEL_MAX.
2017-04-29 16:18:37 +03:00
Alexey Tourbin
f3460fc148
liz4hc.h: fix a comment: LZ4HC_MAX_CLEVEL -> LZ4HC_CLEVEL_MAX
2017-04-29 16:06:45 +03:00
Yann Collet
37ef330cd8
Merge pull request #348 from terrelln/deprecate
...
[LZ4F] Allow users to disable LZ4F_DEPRECATE
2017-04-26 13:13:42 -07:00
Nick Terrell
0b3e807043
[LZ4F] Allow users to disable LZ4F_DEPRECATE
2017-04-26 10:03:23 -07:00
Yann Collet
31e9ed612b
Merge pull request #347 from lz4/negativeCLevels
...
Negative Compression levels
2017-04-11 14:43:11 -07:00
Yann Collet
e2c9b19122
lz4frame : Added negative compression levels
2017-04-09 01:41:36 -07:00
Yann Collet
7eecd32c07
ensure lz4f_cctx internal buffer size remain valid in case of malloc error
2017-04-09 01:11:39 -07:00
Yann Collet
e169edac05
lz4frame : control lz4 context creation success
2017-04-08 18:27:31 -07:00
Yann Collet
e2827775ee
make __packed memory access default for gcc
...
It's always as good or better then memcpy()
but depends on gcc-specific extension.
solves https://github.com/facebook/zstd/issues/620
2017-03-30 12:22:17 -07:00
Yann Collet
3d4ee35da4
Merge pull request #344 from lz4/LZ4F_getFrameInfo
...
LZ4F_getFrameInfo and LZ4F_resetDecompressionContext
2017-03-30 12:08:43 -07:00
Yann Collet
6226d52eab
fixed minor Visual warning
2017-03-29 14:18:10 -07:00
Yann Collet
b88df6b1b0
Improved comments on LZ4F_getFrameInfo()
...
and added LZ4F_resetCompressionContext()
2017-03-29 12:51:08 -07:00
Yann Collet
fc31257ab2
added LZ4F_resetDecompressionContext()
2017-03-28 17:36:12 -07:00
Yann Collet
f0a7651fce
Safer LZ4_getFrameInfo()
...
LZ4_getFrameInfo() is now guaranteed to keep dctx state clean,
even in case of failure.
2017-03-28 17:10:01 -07:00
Yann Collet
ab547a0ef8
Merge pull request #342 from iburinoc/isatty
...
Fix IS_CONSOLE returning 1 for NUL on windows
2017-03-27 13:32:51 -07:00
Sean Purcell
9b1f00056a
Fix inline compile errors
2017-03-27 12:26:12 -07:00
Sean Purcell
afde27acf2
Fix IS_CONSOLE returning 1 for NUL on windows
2017-03-27 12:10:10 -07:00
Yann Collet
84246b974e
Merge pull request #341 from iburinoc/exematch
...
Ignore extensions in exe name matching
2017-03-24 20:42:27 -07:00
Yann Collet
4567d0def5
Merge pull request #340 from lz4/optlz4opt
...
lz4opt
2017-03-24 17:10:45 -07:00
Sean Purcell
e9c3b14f29
Ignore extensions in exe name matching
2017-03-24 16:33:14 -07:00
Yann Collet
38362c1d65
Merge pull request #338 from ldv-alt/dev
...
Export deprecated symbols declared in lz4hc.h
2017-03-24 12:03:32 -07:00
Yann Collet
60b6d2907f
improved level 10 speed for degenerated cases
2017-03-24 11:29:35 -07:00
Yann Collet
8f8fc52fcf
Merge branch 'dev' into optlz4opt
2017-03-24 11:00:40 -07:00
Yann Collet
0863931a1c
fixed API comment for LZ4F_createCompressionContext()
...
as reported by @nh2
2017-03-24 10:34:18 -07:00
Dmitry V. Levin
dab3590fce
Export deprecated symbols declared in lz4hc.h
...
Commit 25b2435885
exported deprecated
symbols declared in lz4.h by marking all LZ4_DEPRECATED functions with
LZ4LIB_API attribute. This change does the same with functions declared
in lz4hc.h file, thus extending the export to lz4hc.h.
As result, the following 17 deprecated functions are exported again:
LZ4_compressHC
LZ4_compressHC2
LZ4_compressHC2_continue
LZ4_compressHC2_limitedOutput
LZ4_compressHC2_limitedOutput_continue
LZ4_compressHC2_limitedOutput_withStateHC
LZ4_compressHC2_withStateHC
LZ4_compressHC_continue
LZ4_compressHC_limitedOutput
LZ4_compressHC_limitedOutput_continue
LZ4_compressHC_limitedOutput_withStateHC
LZ4_compressHC_withStateHC
LZ4_createHC
LZ4_freeHC
LZ4_resetStreamStateHC
LZ4_sizeofStreamStateHC
LZ4_slideInputBufferHC
2017-03-24 03:12:48 +00:00
Yann Collet
13f5cb2d5d
Merge pull request #337 from ldv-alt/dev
...
cli: add GNU separator -- specifying that all following arguments are files
2017-03-22 22:00:07 -07:00
Dmitry V. Levin
b1daffc4e5
cli: add GNU separator -- specifying that all following arguments are files
...
This option is supported by other compressors with compatible cli,
so add it to lz4 as well for better compatibility.
2017-03-23 03:48:51 +00:00
Yann Collet
68044acfec
Merge branch 'optlz4opt' of github.com:Cyan4973/lz4 into optlz4opt
2017-03-20 09:58:00 -07:00
Yann Collet
b8bc70022b
minor refactor
2017-03-20 05:04:12 -07:00
Yann Collet
cea8f60df1
slight btopt speed improvement
...
removing a useless test
2017-03-20 02:33:02 -07:00
Yann Collet
f513020a6d
slight btopt speed improvement
...
removing a useless test
2017-03-17 18:07:53 -07:00
Yann Collet
8bd32a17b1
made SET_PRICE macro more usable
...
previous version would use argument to also change target member.
Now, only values are transferred
2017-03-17 17:42:47 -07:00
Yann Collet
118b47f3d1
improved lz4opt speed (~4%)
2017-03-17 16:53:35 -07:00
Yann Collet
eff6166eb8
minor price function optimization
2017-03-17 15:51:21 -07:00
Yann Collet
0d073d4d28
added extern C
for lz4.h static section
...
should make the file more compatible with C++ compiler, such as Visual or g++
2017-03-17 15:11:09 -07:00
Yann Collet
aae447fffd
LZ4_compress_HC_continue_destSize() works as intended up to level 10
...
It's incompatible with btopt though,
so cLevel >= 11 feature much reduced performance (degraded mode)
2017-03-16 15:41:30 -07:00
Yann Collet
cd35f0d98c
LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code path
...
Limits compression level to 10,
to remain compatible with Hash Chain.
2017-03-16 15:10:38 -07:00
Yann Collet
6b2a1b3606
updated lz4 version number
2017-03-16 02:24:46 -07:00
Yann Collet
430b7d32b3
created LZ4_HC_STATIC_LINKING_ONLY section
...
where are exposed new prototypes *_destSize()
2017-03-16 02:16:24 -07:00
Yann Collet
9144520dc9
fixed Visual compilation error
...
static const must be a "constant", like a macro
even if it can be determined at compile time ...
2017-03-15 18:59:26 -07:00
Yann Collet
a33bf89c62
fix #332 : do not modify /dev/null permissions
2017-03-15 17:26:50 -07:00
Yann Collet
e945a27f9c
fix #333 : expose obsolete decoding functions
...
with deprecation warning.
notified by Chen Yufei
2017-03-14 21:21:54 -07:00